docusign_rest 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/docusign_rest/client.rb +22 -1
- 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: 35d3ce771357818a6f15d8c6abeb65059169ebae
|
4
|
+
data.tar.gz: 05a8c027da0681ae5e541c0bfc69c5426caef328
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e94aacbfd377a4651a87bc712330dd13bb2f0a9824fcfaa4c8e810fcb4ec3382856c9b263d72a922590a462dd8b3ce4a5312384aad15a826d85a87ab0a3bf939
|
7
|
+
data.tar.gz: cf27038f94bc935d694b29bbcea1aca4fee009e98dfd0c24f17aca1596ebd8de7422b67686fbabb0b0fb8cac3f3fea060697f21ec936a5b9074a4e8a564b2bb9
|
data/CHANGELOG.md
CHANGED
data/lib/docusign_rest/client.rb
CHANGED
@@ -968,6 +968,28 @@ module DocusignRest
|
|
968
968
|
JSON.parse(response.body)
|
969
969
|
end
|
970
970
|
|
971
|
+
# Public marks an envelope as sent
|
972
|
+
#
|
973
|
+
# envelope_id - ID of the envelope which you want to send
|
974
|
+
#
|
975
|
+
# Returns the response (success or failure).
|
976
|
+
def send_envelope(envelope_id)
|
977
|
+
content_type = { 'Content-Type' => 'application/json' }
|
978
|
+
|
979
|
+
post_body = {
|
980
|
+
status: 'sent'
|
981
|
+
}.to_json
|
982
|
+
|
983
|
+
uri = build_uri("/accounts/#{acct_id}/envelopes/#{envelope_id}")
|
984
|
+
|
985
|
+
http = initialize_net_http_ssl(uri)
|
986
|
+
request = Net::HTTP::Put.new(uri.request_uri, headers(content_type))
|
987
|
+
request.body = post_body
|
988
|
+
response = http.request(request)
|
989
|
+
|
990
|
+
JSON.parse(response.body)
|
991
|
+
end
|
992
|
+
|
971
993
|
|
972
994
|
# Public returns the names specified for a given email address (existing docusign user)
|
973
995
|
#
|
@@ -1185,7 +1207,6 @@ module DocusignRest
|
|
1185
1207
|
JSON.parse(response.body)
|
1186
1208
|
end
|
1187
1209
|
|
1188
|
-
|
1189
1210
|
# Public retrieves a png of a page of a document in an envelope
|
1190
1211
|
#
|
1191
1212
|
# envelope_id - ID of the envelope from which the doc will be retrieved
|
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.3.
|
4
|
+
version: 0.3.5
|
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: 2017-
|
12
|
+
date: 2017-12-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multipart-post
|