/// <summary> /// Upload with image URL. Kraken will download the image from the provided URL. /// 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> ImageUrlUpload(ImageUrlUploadCallbackUrlRequest request, CancellationToken cancellationToken) { return(this.UploadCallbackUrl(request, this.imageUrl, cancellationToken)); }
/// <summary> /// Upload with image URL. Kraken will download the image from the provided URL. /// 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> ImageUrlUpload(ImageUrlUploadCallbackUrlRequest request) { return(this.ImageUrlUpload(request, default(CancellationToken))); }