Class SubscriptionClient
- Namespace
- Crews.PlanningCenter.Api.Webhooks.V2018_08_01
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the Subscription resource.
[Obsolete("This resource is deprecated and may be removed in a future version.")]
public class SubscriptionClient : SingletonResourceClient<Subscription, SubscriptionResource, SubscriptionResponse>
- Inheritance
-
SubscriptionClient
- Inherited Members
Constructors
SubscriptionClient(HttpClient, Uri)
Client for interacting with the Subscription resource.
public SubscriptionClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
Events
Associated Events.
[Obsolete("This endpoint is deprecated and may be removed in a future release.")]
public PaginatedEventClient Events { get; }
Property Value
Methods
DeleteAsync(CancellationToken)
Deletes the Subscription resource asynchronously.
public Task DeleteAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task
A task representing the asynchronous delete operation.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
GetAsync(CancellationToken)
Fetches the Subscription resource asynchronously.
public Task<SubscriptionResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<SubscriptionResponse>
A task representing the asynchronous operation, containing the Subscription resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
PatchAsync(Subscription, CancellationToken)
Updates an existing Subscription resource asynchronously.
public Task<SubscriptionResponse> PatchAsync(Subscription resource, CancellationToken cancellationToken = default)
Parameters
resourceSubscriptionThe resource data to be sent in the patch request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<SubscriptionResponse>
A task representing the asynchronous operation, containing the updated Subscription resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
PatchAsync(JsonApiDocument<SubscriptionResource>, CancellationToken)
Updates an existing Subscription resource asynchronously.
public Task<SubscriptionResponse> PatchAsync(JsonApiDocument<SubscriptionResource> document, CancellationToken cancellationToken = default)
Parameters
documentJsonApiDocument<SubscriptionResource>The JSON:API document to be sent in the patch request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<SubscriptionResponse>
A task representing the asynchronous operation, containing the updated Subscription resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
RotateSecretAsync(CancellationToken)
Planning Center does not provide a description for this action.
[Obsolete("This action is deprecated and may be removed in a future release.")]
public Task RotateSecretAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken