Table of Contents

Class BirthdayPeopleClient

Namespace
Crews.PlanningCenter.Api.People.V2020_04_06
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

httpClient HttpClient
uri Uri

Methods

GetAsync(CancellationToken)

Fetches the BirthdayPeople resource asynchronously.

public Task<BirthdayPeopleResponse> GetAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A 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.