Table of Contents

Class ResourceClient

Namespace
Crews.PlanningCenter.Api.Groups.V2023_07_10
Assembly
Crews.PlanningCenter.Api.dll

Client for interacting with the Resource resource.

public class ResourceClient : SingletonResourceClient<Resource, ResourceResource, ResourceResponse>
Inheritance
ResourceClient
Inherited Members

Constructors

ResourceClient(HttpClient, Uri)

Client for interacting with the Resource resource.

public ResourceClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Properties

Download

Associated Download.

public ResourceClient Download { get; }

Property Value

ResourceClient

Visit

Associated Visit.

public ResourceClient Visit { get; }

Property Value

ResourceClient

Methods

GetAsync(CancellationToken)

Fetches the Resource resource asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<ResourceResponse>

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

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.