/// <summary> /// Uploads a photo as described by the specified <code>options</code>. /// </summary> /// <param name="options">The options for the call to the API.</param> /// <returns>An instance of <see cref="IHttpResponse"/> representing the raw response.</returns> /// <see> /// <cref>https://www.flickr.com/services/api/upload.api.html</cref> /// </see> public IHttpResponse Upload(FlickrUploadPhotoOptions options) { if (options == null) { throw new ArgumentNullException(nameof(options)); } return(Client.Post("https://up.flickr.com/services/upload/", options)); }
/// <summary> /// Uploads a photo as described by the specified <paramref name="options"/>. /// </summary> /// <param name="options">The options for the call to the API.</param> /// <returns>An instance of <see cref="FlickrUploadPhotoResponse"/> representing the response.</returns> /// <see> /// <cref>https://www.flickr.com/services/api/upload.api.html</cref> /// </see> public FlickrUploadPhotoResponse Upload(FlickrUploadPhotoOptions options) { return(FlickrUploadPhotoResponse.ParseResponse(Raw.Upload(options))); }