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