Table of Contents

Class OrganizationClient

Namespace
Crews.PlanningCenter.Api.Api.V2025_09_30
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

httpClient HttpClient
uri Uri

Properties

ConnectedApplications

Associated ConnectedApplications.

public PaginatedConnectedApplicationClient ConnectedApplications { get; }

Property Value

PaginatedConnectedApplicationClient

OauthApplications

Associated OauthApplications.

public PaginatedOauthApplicationClient OauthApplications { get; }

Property Value

PaginatedOauthApplicationClient

PersonalAccessTokens

Associated PersonalAccessTokens.

public PaginatedPersonalAccessTokenClient PersonalAccessTokens { get; }

Property Value

PaginatedPersonalAccessTokenClient

Methods

GetAsync(CancellationToken)

Fetches the Organization resource asynchronously.

public Task<OrganizationResponse> GetAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A 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.