Table of Contents

Class SpeakerClient

Namespace
Crews.PlanningCenter.Api.Publishing.V2018_08_01
Assembly
Crews.PlanningCenter.Api.dll

Client for interacting with the Speaker resource.

public class SpeakerClient : SingletonResourceClient<Speaker, SpeakerResource, SpeakerResponse>
Inheritance
SpeakerClient
Inherited Members

Constructors

SpeakerClient(HttpClient, Uri)

Client for interacting with the Speaker resource.

public SpeakerClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Methods

GetAsync(CancellationToken)

Fetches the Speaker resource asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<SpeakerResponse>

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

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.