/// <summary> /// Sends a synchronous create event request to the API. /// </summary> /// <param name="eventModel">event an instance of {@link Event} that will be turned into a request</param> /// <returns><see cref="ApiResponse"/></returns> public ApiResponse CreateEvent(EventModel eventModel) { return GetResult<ApiResponse>(CreateEventAsync(eventModel)); }
/// <summary> /// Sends an asynchronous create event request to the API. /// </summary> /// <param name="event">event an instance of {@link Event} that will be turned into a request</param> /// <returns>Async task result</returns> public Task<HttpResponseMessage> CreateEventAsync(EventModel @event) { return Client.PostAsJsonAsync("/events.json?accessKey=" + _accessKey, @event); }