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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c54f0562637e8e09010eb024a38b2fab0e32ac92
4
- data.tar.gz: 7241b30fda843df06140fbae8685910719779158
3
+ metadata.gz: 71249938a90feb8178a7dd61134b5ee1b3d1ab83
4
+ data.tar.gz: 173984a21617f347f5fa8ef046c55d3a689be127
5
5
  SHA512:
6
- metadata.gz: c63f45e9e9b8bb76c477d1a2359a893e0d1400788ce9ba2b9db169c0bfd38fab8bf437a5de5ceef5a74453d63d4d2f7e9cdadf54888f66f473e8184bc59fb5d1
7
- data.tar.gz: 4f8e31eb942966e6430f735542a09df9d6d0942d645a1339c8051ccda94362b4bf0057fd8d4f64d3bedf17fd65bc354e8067c11f347a80209111db73e9f9eb7e
6
+ metadata.gz: 07c63cffce18f06d55878ee755abeb202451ab6f05c1207cae961eadd6f49db97a5356b191fb71efcc351e74791d31242bc2a1d72b1554a42305f6684d6f1974
7
+ data.tar.gz: e2597d4609c965ab8a90f97ac640d186a2640b70f7dd7b7a891d321c54c2740f5a1169ee21e0b388bd61c0888b4be7e2e5d02ef094302399e4cf6afa9f858b33
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.4.3 Oct 27 2018
4
+ * Implement Docusign::Client#get_users_list (Hendrik Kleinwaechter)
5
+
3
6
  ## v0.4.2 Oct 2 2018
4
7
  * Allow radio buttons tabs to be passed in as part of signer-specific tabs (Iago Pimenta)
5
8
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module DocusignRest
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
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.2
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-02 00:00:00.000000000 Z
12
+ date: 2018-10-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multipart-post