Class EventClient
- Namespace
- Crews.PlanningCenter.Api.Webhooks.V2018_08_01
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the Event resource.
public class EventClient : SingletonResourceClient<Event, EventResource, EventResponse>
- Inheritance
-
EventClient
- Inherited Members
Constructors
EventClient(HttpClient, Uri)
Client for interacting with the Event resource.
public EventClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
Deliveries
Associated Deliveries.
public PaginatedDeliveryClient Deliveries { get; }
Property Value
Methods
GetAsync(CancellationToken)
Fetches the Event resource asynchronously.
public Task<EventResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<EventResponse>
A task representing the asynchronous operation, containing the Event resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
RedeliverAsync(CancellationToken)
Planning Center does not provide a description for this action.
public Task RedeliverAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken