Module: GettyUp::API::GetLargestImageDownloadAuthorization
- Includes:
- Util
- Defined in:
- lib/getty_up/api/get_largest_image_download_authorization.rb
Constant Summary collapse
- ENDPOINT =
"http://connect.gettyimages.com/v1/download/GetLargestImageDownloadAuthorizations"
Instance Method Summary collapse
Methods included from Util
Instance Method Details
#get_largest_image_download_authorization(token, image_id) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/getty_up/api/get_largest_image_download_authorization.rb', line 11 def (token ,image_id) request = { :RequestHeader => { :Token => token, :CoordinationId => "MyUniqueId" }, :GetLargestImageDownloadAuthorizationsRequestBody => { :Images => [{ :ImageId => image_id }] } } response = post_json(request, ENDPOINT) end |