Class BirthdayPeopleClient
- Namespace
- Crews.PlanningCenter.Api.People.V2022_01_28
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the BirthdayPeople resource.
public class BirthdayPeopleClient : SingletonResourceClient<BirthdayPeople, BirthdayPeopleResource, BirthdayPeopleResponse>
- Inheritance
-
BirthdayPeopleClient
- Inherited Members
Constructors
BirthdayPeopleClient(HttpClient, Uri)
Client for interacting with the BirthdayPeople resource.
public BirthdayPeopleClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public BirthdayPeopleClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- BirthdayPeopleClient
The current BirthdayPeopleClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public BirthdayPeopleClient ClearParameters()
Returns
- BirthdayPeopleClient
The current BirthdayPeopleClient instance.
GetAsync(CancellationToken)
Fetches the BirthdayPeople resource asynchronously.
public Task<BirthdayPeopleResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<BirthdayPeopleResponse>
A task representing the asynchronous operation, containing the BirthdayPeople resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.