Class SpeakerClient
- Namespace
- Crews.PlanningCenter.Api.Publishing.V2024_03_25
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the Speaker resource.
public class SpeakerClient : SingletonResourceClient<Speaker, SpeakerResource, SpeakerResponse>
- Inheritance
-
SpeakerClient
- Inherited Members
Constructors
SpeakerClient(HttpClient, Uri)
Client for interacting with the Speaker resource.
public SpeakerClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
GetAsync(CancellationToken)
Fetches the Speaker resource asynchronously.
public Task<SpeakerResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<SpeakerResponse>
A task representing the asynchronous operation, containing the Speaker resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.