Table of Contents

Class FeedClient

Namespace
Crews.PlanningCenter.Api.Calendar.V2020_04_08
Assembly
Crews.PlanningCenter.Api.dll

Client for interacting with the Feed resource.

public class FeedClient : SingletonResourceClient<Feed, FeedResource, FeedResponse>
Inheritance
FeedClient
Inherited Members

Constructors

FeedClient(HttpClient, Uri)

Client for interacting with the Feed resource.

public FeedClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Methods

AddCustomParameter(string, string)

Adds a custom query parameter to the request URI.

public FeedClient AddCustomParameter(string parameter, string value)

Parameters

parameter string

The name of the query parameter.

value string

The value of the query parameter.

Returns

FeedClient

The current FeedClient instance.

ClearParameters()

Removes the entire query string from the request URI.

public FeedClient ClearParameters()

Returns

FeedClient

The current FeedClient instance.

GetAsync(CancellationToken)

Fetches the Feed resource asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<FeedResponse>

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

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.