Class OrganizationClient
- Namespace
- Crews.PlanningCenter.Api.CheckIns.V2024_11_07
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the Organization resource.
public class OrganizationClient : SingletonResourceClient<Organization, OrganizationResource, OrganizationResponse>
- Inheritance
-
OrganizationClient
- Inherited Members
Constructors
OrganizationClient(HttpClient, Uri)
Client for interacting with the Organization resource.
public OrganizationClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
CheckIns
Associated CheckIns.
public PaginatedCheckInClient CheckIns { get; }
Property Value
EventTimes
Associated EventTimes.
public PaginatedEventTimeClient EventTimes { get; }
Property Value
Events
Associated Events.
public PaginatedEventClient Events { get; }
Property Value
Headcounts
Associated Headcounts.
public PaginatedHeadcountClient Headcounts { get; }
Property Value
IntegrationLinks
Associated IntegrationLinks.
public PaginatedIntegrationLinkClient IntegrationLinks { get; }
Property Value
Labels
Associated Labels.
public PaginatedLabelClient Labels { get; }
Property Value
Me
The current user.
public PersonClient Me { get; }
Property Value
Options
Associated Options.
public PaginatedOptionClient Options { get; }
Property Value
Passes
Associated Passes.
public PaginatedPassClient Passes { get; }
Property Value
People
Associated People.
public PaginatedPersonClient People { get; }
Property Value
Stations
Associated Stations.
public PaginatedStationClient Stations { get; }
Property Value
Themes
Associated Themes.
public PaginatedThemeClient Themes { get; }
Property Value
Methods
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public OrganizationClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- OrganizationClient
The current OrganizationClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public OrganizationClient ClearParameters()
Returns
- OrganizationClient
The current OrganizationClient instance.
GetAsync(CancellationToken)
Fetches the Organization resource asynchronously.
public Task<OrganizationResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<OrganizationResponse>
A task representing the asynchronous operation, containing the Organization resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.