Class OrganizationClient
- Namespace
- Crews.PlanningCenter.Api.Publishing.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
Channels
Associated Channels.
public PaginatedChannelClient Channels { get; }
Property Value
Episodes
Associated Episodes.
public PaginatedEpisodeClient Episodes { get; }
Property Value
Series
Associated Series.
public PaginatedSeriesClient Series { get; }
Property Value
Speakers
Associated Speakers.
public PaginatedSpeakerClient Speakers { 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.