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
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.