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