Class PersonClient
- Namespace
- Crews.PlanningCenter.Api.Groups.V2023_07_10
- 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
Properties
Events
Associated Events.
public PaginatedEventClient Events { get; }
Property Value
Groups
Associated Groups.
public PaginatedGroupClient Groups { get; }
Property Value
Memberships
Associated Memberships.
public PaginatedMembershipClient Memberships { get; }
Property Value
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.