lib/purecloud/api/content_management_api.rb in purecloud-0.66.1 vs lib/purecloud/api/content_management_api.rb in purecloud-0.67.1
- old
+ new
@@ -881,25 +881,25 @@
# @param [Hash] opts the optional parameters
# @option opts [BOOLEAN] :redirect Turn on or off redirect (default to true)
# @option opts [String] :disposition Request how the share content will be downloaded: attached as a file or inline. Default is attachment. (default to attachment)
# @option opts [String] :content_type The requested format for the specified document. If supported, the document will be returned in that format. Example contentType=audio/wav
# @option opts [String] :expand Expand some document fields
- # @return [nil]
+ # @return [SharedResponse]
def get_shared_shared_id(shared_id, opts = {})
- get_shared_shared_id_with_http_info(shared_id, opts)
- return nil
+ data, status_code, headers = get_shared_shared_id_with_http_info(shared_id, opts)
+ return data
end
# Get shared documents. Securely download a shared document.
# This method requires the download sharing URI obtained in the get document response (downloadSharingUri). Documents may be shared between users in the same workspace. Documents may also be shared between any user by creating a content management share.
# @param shared_id Shared ID
# @param [Hash] opts the optional parameters
# @option opts [BOOLEAN] :redirect Turn on or off redirect
# @option opts [String] :disposition Request how the share content will be downloaded: attached as a file or inline. Default is attachment.
# @option opts [String] :content_type The requested format for the specified document. If supported, the document will be returned in that format. Example contentType=audio/wav
# @option opts [String] :expand Expand some document fields
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
+ # @return [Array<(SharedResponse, Fixnum, Hash)>] SharedResponse data, response status code and response headers
def get_shared_shared_id_with_http_info(shared_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: ContentManagementApi#get_shared_shared_id ..."
end
@@ -945,10 +945,11 @@
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
- :auth_names => auth_names)
+ :auth_names => auth_names,
+ :return_type => 'SharedResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: ContentManagementApi#get_shared_shared_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end