Class BirthdayPeopleClient
- Namespace
- Crews.PlanningCenter.Api.People.V2025_07_02
- 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
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.