Table of Contents

Class CategoryClient

Namespace
Crews.PlanningCenter.Api.Registrations.V2025_05_01
Assembly
Crews.PlanningCenter.Api.dll

Client for interacting with the Category resource.

public class CategoryClient : SingletonResourceClient<Category, CategoryResource, CategoryResponse>
Inheritance
CategoryClient
Inherited Members

Constructors

CategoryClient(HttpClient, Uri)

Client for interacting with the Category resource.

public CategoryClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Methods

GetAsync(CancellationToken)

Fetches the Category resource asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<CategoryResponse>

A task representing the asynchronous operation, containing the Category resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.