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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 315dfbf3d74db6eeb178103fdbff1e292cae24d6
4
- data.tar.gz: a266dc5675f6f245f00d6d6ac63f54ee99f587f4
3
+ metadata.gz: 35d3ce771357818a6f15d8c6abeb65059169ebae
4
+ data.tar.gz: 05a8c027da0681ae5e541c0bfc69c5426caef328
5
5
  SHA512:
6
- metadata.gz: fe3576b188cd80e125d33041ff04be4ee1872dea3945d92d7a229c9400ff6ff4a89e668de9bebf3826acd043910354d7a92c91bb8d2516fb01e538ea3a386f0e
7
- data.tar.gz: e4961c5a5c819f8f10635a295328b406a41ce03f449e16d5781569cbbbe84595224267cb4e5182e5db36735070ac676d7f5e990ac290b9e93c7624c92ca2a958
6
+ metadata.gz: e94aacbfd377a4651a87bc712330dd13bb2f0a9824fcfaa4c8e810fcb4ec3382856c9b263d72a922590a462dd8b3ce4a5312384aad15a826d85a87ab0a3bf939
7
+ data.tar.gz: cf27038f94bc935d694b29bbcea1aca4fee009e98dfd0c24f17aca1596ebd8de7422b67686fbabb0b0fb8cac3f3fea060697f21ec936a5b9074a4e8a564b2bb9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.3.5 Dec 12 2017
4
+
5
+ * Implement DocusignRest::Client#send_envelope (Derek Harrington)
6
+
3
7
  ## v0.3.4 Nov 20 2017
4
8
 
5
9
  * Add open (default 5 seconds) and read (default 10 seconds) timeouts (Tom Copeland)
@@ -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
@@ -1,3 +1,3 @@
1
1
  module DocusignRest
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
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.3.4
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-11-20 00:00:00.000000000 Z
12
+ date: 2017-12-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multipart-post