/// <summary>
 /// Create or update a subscriber.
 /// See: https://www.getdrip.com/docs/rest-api#create_or_update_subscriber
 /// </summary>
 /// <param name="subscriber"></param>
 /// <param name="cancellationToken">The CancellationToken to be used to cancel the request.</param>
 /// <returns>A Task that, when completed, will contain a DripSubscribersResponse.</returns>
 public Task <DripSubscribersResponse> CreateOrUpdateSubscriberAsync(ModifyDripSubscriberRequest subscriber, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(PostResourceAsync <DripSubscribersResponse>(CreateOrUpdateSubscriberResource, SubscribersRequestBodyKey, new ModifyDripSubscriberRequest[] { subscriber }, cancellationToken));
 }
 /// <summary>
 /// Create or update a subscriber.
 /// See: https://www.getdrip.com/docs/rest-api#create_or_update_subscriber
 /// </summary>
 /// <param name="subscriber">The DripSubscriber to create or update.</param>
 /// <returns>A DripSubscribersResponse</returns>
 public DripSubscribersResponse CreateOrUpdateSubscriber(ModifyDripSubscriberRequest subscriber)
 {
     return(PostResource <DripSubscribersResponse>(CreateOrUpdateSubscriberResource, SubscribersRequestBodyKey, new ModifyDripSubscriberRequest[] { subscriber }));
 }