hellosign-ruby-sdk 3.2.5 → 3.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/hello_sign/api/signature_request.rb +5 -3
- data/lib/hello_sign/client.rb +6 -0
- data/lib/hello_sign/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: b32ce1b07510e90068e93efb8741f034c972d554
|
4
|
+
data.tar.gz: 215e09a6a49ec7a89c0e77ec4c1487a2199cfd99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee5a7d2684a63906f01fac02dafa00d03415a7b0e08f7d46eca10a315b1c090f266b875e6355ea7165aabf5cfab69c9db81670c6b8d3ed58f8f45f37de4a642a
|
7
|
+
data.tar.gz: 4976c0f97b31d698ab796243b7bc84b63711e1377654585bfa354507b66fdd755e49a51d9bb9426a268c2682474d3f36ef61d05c684be955360c92ff1970601e
|
data/README.md
CHANGED
@@ -40,7 +40,7 @@ my_account = HelloSign.get_account
|
|
40
40
|
my_signature_requests = HelloSign.get_signature_requests
|
41
41
|
|
42
42
|
# view a specific signature request
|
43
|
-
signature_request = HelloSign.
|
43
|
+
signature_request = HelloSign.get_signature_request :signature_request_id => '42383e7327eda33f4b8b91217cbe95408cc1285f'
|
44
44
|
```
|
45
45
|
|
46
46
|
If you need to authenticate for multiple users and you want a separated client for them, you can run:
|
@@ -53,8 +53,9 @@ module HelloSign
|
|
53
53
|
|
54
54
|
#
|
55
55
|
# Returns a list of SignatureRequests that you can access. This includes SignatureRequests you have sent as well as received, but not ones that you have been CCed on.
|
56
|
-
# @option opts [Integer] page (1) Which page number of the Template List to return.
|
57
|
-
# @option opts [Integer] ux_version sets the version of the signer page to use
|
56
|
+
# @option opts[:page] [Integer] page (1) Which page number of the Template List to return.
|
57
|
+
# @option opts[:ux_version] [Integer] ux_version sets the version of the signer page to use
|
58
|
+
# @option opts[:query] [String] query string to search on, such as "title:Field Trip Release AND from:me"
|
58
59
|
#
|
59
60
|
# @return [HelloSign::Resource::ResourceArray]
|
60
61
|
#
|
@@ -63,7 +64,8 @@ module HelloSign
|
|
63
64
|
#
|
64
65
|
def get_signature_requests(opts={})
|
65
66
|
path = '/signature_request/list'
|
66
|
-
query =
|
67
|
+
opts[:query] = create_search_string(opts[:query])
|
68
|
+
query = create_query_string(opts, [:page, :page_size, :ux_version, :query])
|
67
69
|
path += query
|
68
70
|
HelloSign::Resource::ResourceArray.new get(path, opts), 'signature_requests', HelloSign::Resource::SignatureRequest
|
69
71
|
end
|
data/lib/hello_sign/client.rb
CHANGED
@@ -183,6 +183,8 @@ module HelloSign
|
|
183
183
|
def parse(response)
|
184
184
|
if response['content-type'] == 'application/pdf'
|
185
185
|
response.body
|
186
|
+
elsif response['content-type'] == 'application/zip'
|
187
|
+
response.body
|
186
188
|
elsif response.body.strip.empty?
|
187
189
|
{}
|
188
190
|
else
|
@@ -269,6 +271,10 @@ module HelloSign
|
|
269
271
|
result
|
270
272
|
end
|
271
273
|
|
274
|
+
def create_search_string(raw_string)
|
275
|
+
raw_string.tr(" ", "+")
|
276
|
+
end
|
277
|
+
|
272
278
|
def prepare_signers(opts)
|
273
279
|
prepare opts, :signers
|
274
280
|
end
|
data/lib/hello_sign/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hellosign-ruby-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- HelloSign
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|