Method: DocuSign_eSign::FoldersApi#list_items_with_http_info
- Defined in:
- lib/docusign_esign/api/folders_api.rb
#list_items_with_http_info(account_id, folder_id, options = DocuSign_eSign::ListItemsOptions.default) ⇒ Array<(FolderItemsResponse, Fixnum, Hash)>
Gets a list of the envelopes in the specified folder. Retrieves a list of the envelopes in the specified folder. You can narrow the query by specifying search criteria in the query string parameters.
178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 |
# File 'lib/docusign_esign/api/folders_api.rb', line 178 def list_items_with_http_info(account_id, folder_id, = DocuSign_eSign::ListItemsOptions.default) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: FoldersApi.list_items ..." end # verify the required parameter 'account_id' is set fail ArgumentError, "Missing the required parameter 'account_id' when calling FoldersApi.list_items" if account_id.nil? # verify the required parameter 'folder_id' is set fail ArgumentError, "Missing the required parameter 'folder_id' when calling FoldersApi.list_items" if folder_id.nil? # resource path local_var_path = "/v2.1/accounts/{accountId}/folders/{folderId}".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'folderId' + '}', folder_id.to_s) # query parameters query_params = {} query_params[:'from_date'] = .from_date if !.from_date.nil? query_params[:'include_items'] = .include_items if !.include_items.nil? query_params[:'owner_email'] = .owner_email if !.owner_email.nil? query_params[:'owner_name'] = .owner_name if !.owner_name.nil? query_params[:'search_text'] = .search_text if !.search_text.nil? query_params[:'start_position'] = .start_position if !.start_position.nil? query_params[:'status'] = .status if !.status.nil? query_params[:'to_date'] = .to_date if !.to_date.nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] 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 => 'FolderItemsResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: FoldersApi#list_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |