lib/docusign_rest/client.rb in docusign_rest-0.3.2 vs lib/docusign_rest/client.rb in docusign_rest-0.3.3

- old
+ new

@@ -1470,16 +1470,23 @@ end # Public: Retrieves a list of available templates # + # params: Can contain a folder + # # Example # # client.get_templates() # + # or + # + # client.get_templates(params: {folder: "somefolder"}) + # # Returns a list of the available templates. - def get_templates + def get_templates(options={}) uri = build_uri("/accounts/#{acct_id}/templates") + uri.query = URI.encode_www_form(options[:params]) if options[:params] http = initialize_net_http_ssl(uri) request = Net::HTTP::Get.new(uri.request_uri, headers({ 'Content-Type' => 'application/json' })) response = http.request(request) generate_log(request, response, uri)