/// <summary>
 /// Track an event.
 /// See: https://www.getdrip.com/docs/rest-api#record_event
 /// </summary>
 /// <param name="dripEvent">The event to track.</param>
 /// <param name="cancellationToken">The CancellationToken to be used to cancel the request.</param>
 /// <returns>A Task that, when completed successfully, will contain a StatusCode of Created.</returns>
 public Task <DripResponse> TrackEventAsync(DripEvent dripEvent, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(PostResourceAsync <DripResponse>(TrackEventResource, EventsRequestBodyKey, new DripEvent[] { dripEvent }, cancellationToken));
 }
 /// <summary>
 /// Track an event.
 /// See: https://www.getdrip.com/docs/rest-api#record_event
 /// </summary>
 /// <param name="dripEvent">The event to track.</param>
 /// <returns>On success, a DripResponse with StatusCode of Created.</returns>
 public DripResponse TrackEvent(DripEvent dripEvent)
 {
     return(PostResource <DripResponse>(TrackEventResource, EventsRequestBodyKey, new DripEvent[] { dripEvent }));
 }