hellosign-ruby-sdk 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore
CHANGED
@@ -61,6 +61,9 @@ module HelloSign
|
|
61
61
|
# @option opts [String] email_address user email
|
62
62
|
#
|
63
63
|
# @return [Bool] true if exists, else false
|
64
|
+
# @example
|
65
|
+
# account = @client.verify :email_address => 'newuser@example.com'
|
66
|
+
#
|
64
67
|
def verify opts
|
65
68
|
post("/account/verify", :body => opts).empty? ? false : true
|
66
69
|
end
|
data/lib/hello_sign/api/oauth.rb
CHANGED
@@ -28,6 +28,10 @@ module HelloSign
|
|
28
28
|
# @option opts [String] code The authorization code passed to your callback when the user granted access
|
29
29
|
#
|
30
30
|
# @return [Hash] oauth data of the user
|
31
|
+
#
|
32
|
+
# @example
|
33
|
+
# client = HelloSign::Client.new :api_key => '%apikey%', :client_id => 'cc91c61d00f8bb2ece1428035716b', :client_secret => '1d14434088507ffa390e6f5528465'
|
34
|
+
# client.get_oauth_token :state => '900e06e2', :code =>'1b0d28d90c86c141'
|
31
35
|
def get_oauth_token opts
|
32
36
|
opts[:client_id] = self.client_id
|
33
37
|
opts[:client_secret] = self.client_secret
|
@@ -41,6 +45,11 @@ module HelloSign
|
|
41
45
|
# refresh user oauth token.
|
42
46
|
#
|
43
47
|
# @return [Hash] refreshed oauth info
|
48
|
+
# @example
|
49
|
+
# client = HelloSign::Client.new :api_key => '%apikey%', :client_id => 'cc91c61d00f8bb2ece1428035716b', :client_secret => '1d14434088507ffa390e6f5528465'
|
50
|
+
#
|
51
|
+
# @example
|
52
|
+
# client.refresh_oauth_token :refresh_token => 'hNTI2MTFmM2VmZDQxZTZjOWRmZmFjZmVmMGMyNGFjMzI2MGI5YzgzNmE3'
|
44
53
|
def refresh_oauth_token refresh_token
|
45
54
|
post('/oauth/token', {:body => {:grant_type => 'refresh_token', :refresh_token => refresh_token}, :oauth_request => true})
|
46
55
|
end
|
@@ -17,7 +17,7 @@ module HelloSign
|
|
17
17
|
# @return [HelloSign::Resource::SignatureRequest] a SignatureRequest object
|
18
18
|
#
|
19
19
|
# @example
|
20
|
-
# signature_request = @client.get_signature_request :signature_request_id => '
|
20
|
+
# signature_request = @client.get_signature_request :signature_request_id => 'fa5c8a0b0f492d768749333ad6fcc214c111e967'
|
21
21
|
#
|
22
22
|
def get_signature_request opts
|
23
23
|
HelloSign::Resource::SignatureRequest.new get("/signature_request/#{opts[:signature_request_id]}")
|
data/lib/hello_sign/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hellosign-ruby-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-05-
|
12
|
+
date: 2014-05-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|