Class FeedClient
- Namespace
- Crews.PlanningCenter.Api.Calendar.V2022_07_07
- 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
httpClientHttpClienturiUri
Methods
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public FeedClient AddCustomParameter(string parameter, string value)
Parameters
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
cancellationTokenCancellationTokenA 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.