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