Class SpeakerClient
- Namespace
- Crews.PlanningCenter.Api.Publishing.V2018_08_01
- 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
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public SpeakerClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- SpeakerClient
The current SpeakerClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public SpeakerClient ClearParameters()
Returns
- SpeakerClient
The current SpeakerClient instance.
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.