lib/getty_connect/client/image.rb in getty_connect-0.0.2 vs lib/getty_connect/client/image.rb in getty_connect-0.0.3

- old
+ new

@@ -47,18 +47,23 @@ } post(@search_endpoint, request) end # Returns list of authorized downloads - get_largest_download_auth(asset_ids) + def get_largest_download_auth(asset_ids, options={}) + asset_id_list = Array.new() + asset_ids.each do |aid| + asset_id_list << {:ImageId=>aid} + end + request = { :RequestHeader => { :Token => self.token, :CoordinationId => options[:coordination_id] || "" }, :GetLargestImageDownloadAuthorizationsRequestBody => { - :ImageIds => asset_ids - } + :Images => asset_id_list + }, } post(@download_largest_endpoint, request) end # Returns detailed image metadata for all specified images.