Table of Contents

Class OrganizationClient

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

BatchGroups

Associated BatchGroups.

public PaginatedBatchGroupClient BatchGroups { get; }

Property Value

PaginatedBatchGroupClient

Batches

Associated Batches.

public PaginatedBatchClient Batches { get; }

Property Value

PaginatedBatchClient

Campuses

Associated Campuses.

public PaginatedCampusClient Campuses { get; }

Property Value

PaginatedCampusClient

Donations

Associated Donations.

public PaginatedDonationClient Donations { get; }

Property Value

PaginatedDonationClient

Funds

Associated Funds.

public PaginatedFundClient Funds { get; }

Property Value

PaginatedFundClient

InKindDonations

Associated InKindDonations.

public PaginatedInKindDonationClient InKindDonations { get; }

Property Value

PaginatedInKindDonationClient

Labels

Associated Labels.

public PaginatedLabelClient Labels { get; }

Property Value

PaginatedLabelClient

Me

The current user.

public PersonClient Me { get; }

Property Value

PersonClient

PaymentSources

Associated PaymentSources.

public PaginatedPaymentSourceClient PaymentSources { get; }

Property Value

PaginatedPaymentSourceClient

People

Associated People.

public PaginatedPersonClient People { get; }

Property Value

PaginatedPersonClient

RecurringDonations

Associated RecurringDonations.

public PaginatedRecurringDonationClient RecurringDonations { get; }

Property Value

PaginatedRecurringDonationClient

Methods

AddCustomParameter(string, string)

Adds a custom query parameter to the request URI.

public OrganizationClient AddCustomParameter(string parameter, string value)

Parameters

parameter string

The name of the query parameter.

value string

The value of the query parameter.

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

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.