docusign_rest 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/docusign_rest/client.rb +19 -0
- data/lib/docusign_rest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71249938a90feb8178a7dd61134b5ee1b3d1ab83
|
4
|
+
data.tar.gz: 173984a21617f347f5fa8ef046c55d3a689be127
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07c63cffce18f06d55878ee755abeb202451ab6f05c1207cae961eadd6f49db97a5356b191fb71efcc351e74791d31242bc2a1d72b1554a42305f6684d6f1974
|
7
|
+
data.tar.gz: e2597d4609c965ab8a90f97ac640d186a2640b70f7dd7b7a891d321c54c2740f5a1169ee21e0b388bd61c0888b4be7e2e5d02ef094302399e4cf6afa9f858b33
|
data/CHANGELOG.md
CHANGED
data/lib/docusign_rest/client.rb
CHANGED
@@ -1965,6 +1965,25 @@ module DocusignRest
|
|
1965
1965
|
JSON.parse(response.body)
|
1966
1966
|
end
|
1967
1967
|
|
1968
|
+
# Public method - get list of users
|
1969
|
+
# See https://developers.docusign.com/esign-rest-api/reference/Users
|
1970
|
+
#
|
1971
|
+
# Returns a list of users
|
1972
|
+
def get_users_list(options={})
|
1973
|
+
content_type = {'Content-Type' => 'application/json'}
|
1974
|
+
content_type.merge!(options[:headers]) if options[:headers]
|
1975
|
+
|
1976
|
+
uri = build_uri("/accounts/#{@acct_id}/users?additional_info=true")
|
1977
|
+
|
1978
|
+
request = Net::HTTP::Get.new(uri.request_uri, headers(options[:headers]))
|
1979
|
+
http = initialize_net_http_ssl(uri)
|
1980
|
+
response = http.request(request)
|
1981
|
+
generate_log(request, response, uri)
|
1982
|
+
|
1983
|
+
parsed_response = JSON.parse(response.body)
|
1984
|
+
(parsed_response || {}).fetch("users", [])
|
1985
|
+
end
|
1986
|
+
|
1968
1987
|
private
|
1969
1988
|
|
1970
1989
|
# Private: Generates a standardized log of the request and response pair
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docusign_rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Kinney
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-10-
|
12
|
+
date: 2018-10-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multipart-post
|