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

AddCustomParameter(string, string)

Adds a custom query parameter to the request URI.

public SpeakerClient AddCustomParameter(string parameter, string value)

Parameters

parameter string

The name of the query parameter.

value string

The value of the query parameter.

Returns

SpeakerClient

The current SpeakerClient instance.

ClearParameters()

Removes the entire query string from the request URI.

public SpeakerClient ClearParameters()

Returns

SpeakerClient

The current SpeakerClient instance.

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.