Class OrganizationClient
- Namespace
- Crews.PlanningCenter.Api.Services.V2018_08_01
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the Organization resource.
public class OrganizationClient : SingletonResourceClient<Organization, OrganizationResource, OrganizationResponse>
- Inheritance
-
OrganizationClient
- Inherited Members
Constructors
OrganizationClient(HttpClient, Uri)
Client for interacting with the Organization resource.
public OrganizationClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
AttachmentTypes
Associated AttachmentTypes.
public PaginatedAttachmentTypeClient AttachmentTypes { get; }
Property Value
Chat
Associated Chat.
public ChatClient Chat { get; }
Property Value
EmailTemplates
Associated EmailTemplates.
public PaginatedEmailTemplateClient EmailTemplates { get; }
Property Value
Folders
Associated Folders.
public PaginatedFolderClient Folders { get; }
Property Value
Media
Associated Media.
public PaginatedMediaClient Media { get; }
Property Value
People
Associated People.
public PaginatedPersonClient People { get; }
Property Value
Plans
Associated Plans.
public PaginatedOrganizationClient Plans { get; }
Property Value
ReportTemplates
Associated ReportTemplates.
public PaginatedReportTemplateClient ReportTemplates { get; }
Property Value
Series
Associated Series.
public PaginatedSeriesClient Series { get; }
Property Value
ServiceTypes
Associated ServiceTypes.
public PaginatedServiceTypeClient ServiceTypes { get; }
Property Value
Songs
Associated Songs.
public PaginatedSongClient Songs { get; }
Property Value
TagGroups
Associated TagGroups.
public PaginatedTagGroupClient TagGroups { get; }
Property Value
Teams
Associated Teams.
public PaginatedTeamClient Teams { get; }
Property Value
Methods
GetAsync(CancellationToken)
Fetches the Organization resource asynchronously.
public Task<OrganizationResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<OrganizationResponse>
A task representing the asynchronous operation, containing the Organization resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.