/// <summary> /// Direct image upload with call back URL response. /// With the Callback URL the HTTPS connection will be terminated immediately and a unique id will be returned /// in the response body. After the optimization is over Kraken will POST a message to the callback_url specified /// in the request in a JSON format application/json. The ID in the response will reflect the ID in the results /// posted to your Callback URL. /// </summary> /// <param name="request">The request.</param> /// <param name="cancellationToken">The cancellation token.</param> /// <returns>Task<UploadCallbackUrlResponse>.</returns> public Task <UploadCallbackUrlResponse> DirectUpload(DirectUploadCallbackUrlRequest request, CancellationToken cancellationToken) { return(this.UploadCallbackUrl(request, this.directUploadUrl, cancellationToken)); }
/// <summary> /// Direct image upload with call back URL response. /// With the Callback URL the HTTPS connection will be terminated immediately and a unique id will be returned /// in the response body. After the optimization is over Kraken will POST a message to the callback_url specified /// in the request in a JSON format application/json. The ID in the response will reflect the ID in the results /// posted to your Callback URL. /// </summary> /// <param name="request">The request.</param> /// <returns>Task<UploadCallbackUrlResponse>.</returns> public Task <UploadCallbackUrlResponse> DirectUpload(DirectUploadCallbackUrlRequest request) { return(this.DirectUpload(request, default(CancellationToken))); }