lib/purecloud/api/downloads_api.rb in purecloud-0.18.0 vs lib/purecloud/api/downloads_api.rb in purecloud-0.25.0

- old
+ new

@@ -73,28 +73,28 @@ # this method will issue a redirect to the url to the content # @param download_id Download ID # @param [Hash] opts the optional parameters # @option opts [String] :content_disposition # @return [UrlResponse] - def get_download(download_id, opts = {}) - data, status_code, headers = get_download_with_http_info(download_id, opts) + def get_download_id(download_id, opts = {}) + data, status_code, headers = get_download_id_with_http_info(download_id, opts) return data end # Issues a redirect to a signed secure download URL for specified download # this method will issue a redirect to the url to the content # @param download_id Download ID # @param [Hash] opts the optional parameters # @option opts [String] :content_disposition # @return [Array<(UrlResponse, Fixnum, Hash)>] UrlResponse data, response status code and response headers - def get_download_with_http_info(download_id, opts = {}) + def get_download_id_with_http_info(download_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: DownloadsApi#get_download ..." + @api_client.config.logger.debug "Calling API: DownloadsApi#get_download_id ..." end # verify the required parameter 'download_id' is set - fail "Missing the required parameter 'download_id' when calling get_download" if download_id.nil? + fail "Missing the required parameter 'download_id' when calling get_download_id" if download_id.nil? # resource path path = "/api/v1/downloads/{downloadId}".sub('{format}','json').sub('{' + 'downloadId' + '}', download_id.to_s) # query parameters @@ -126,10 +126,10 @@ :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'UrlResponse') if @api_client.config.debugging - @api_client.config.logger.debug "API called: DownloadsApi#get_download\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DownloadsApi#get_download_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end end end