Method: PureCloud::RecordingApi#get_settings_with_http_info
- Defined in:
- lib/purecloud/api/recording_api.rb
#get_settings_with_http_info(opts = {}) ⇒ Array<(RecordingSettings, Fixnum, Hash)>
Get the Recording Settings for the Organization
849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 |
# File 'lib/purecloud/api/recording_api.rb', line 849 def get_settings_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: RecordingApi#get_settings ..." end # resource path local_var_path = "/api/v2/recording/settings".sub('{format}','json') # query parameters query_params = {} query_params[:'createDefault'] = opts[:'create_default'] if opts[:'create_default'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] 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, :return_type => 'RecordingSettings') if @api_client.config.debugging @api_client.config.logger.debug "API called: RecordingApi#get_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |