docusign_rest 0.0.9 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +5 -2
- data/Gemfile +3 -0
- data/Guardfile +10 -0
- data/LICENSE +2 -2
- data/README.md +68 -4
- data/cacert.pem +3895 -0
- data/docusign_rest.gemspec +11 -7
- data/examples/request_via_gem.rb +41 -0
- data/examples/request_via_raw_net_http.rb +75 -0
- data/lib/docusign_rest.rb +6 -6
- data/lib/docusign_rest/client.rb +588 -195
- data/lib/docusign_rest/configuration.rb +7 -3
- data/lib/docusign_rest/utility.rb +2 -4
- data/lib/docusign_rest/version.rb +1 -1
- data/lib/multipart_post/parts.rb +10 -3
- data/test/docusign_login_config.rb +14 -0
- data/test/docusign_rest/client_test.rb +53 -18
- data/test/docusign_rest/configuration_test.rb +1 -1
- data/test/helper.rb +4 -2
- metadata +61 -46
- data/example.rb +0 -40
data/example.rb
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
require 'docusign_rest'
|
2
|
-
|
3
|
-
DocusignRest.configure do |config|
|
4
|
-
config.username = "someone@gmail.com"
|
5
|
-
config.password = "password"
|
6
|
-
config.integrator_key = "KEYS-16dbc1bc-ca56-4ea6-87ec-29db47d94b32"
|
7
|
-
config.account_id = "123456"
|
8
|
-
end
|
9
|
-
|
10
|
-
client = DocusignRest::Client.new
|
11
|
-
|
12
|
-
response = client.create_envelope_from_document(
|
13
|
-
email: {
|
14
|
-
subject: "test email subject",
|
15
|
-
body: "this is the email body and it's large!"
|
16
|
-
},
|
17
|
-
# If embedded is set to true in the signers array below, emails
|
18
|
-
# don't go out and you can embed the signature page in an iFrame
|
19
|
-
# by using the get_recipient_view method
|
20
|
-
signers: [
|
21
|
-
{
|
22
|
-
#embedded: true,
|
23
|
-
name: 'Test Guy',
|
24
|
-
email: 'someone@gmail.com'
|
25
|
-
},
|
26
|
-
{
|
27
|
-
#embedded: true,
|
28
|
-
name: 'Test Girl',
|
29
|
-
email: 'someone+else@gmail.com'
|
30
|
-
}
|
31
|
-
],
|
32
|
-
files: [
|
33
|
-
{path: 'test.pdf', name: 'test.pdf'},
|
34
|
-
{path: 'test2.pdf', name: 'test2.pdf'}
|
35
|
-
],
|
36
|
-
status: 'sent'
|
37
|
-
)
|
38
|
-
|
39
|
-
response = JSON.parse(response.body)
|
40
|
-
puts response.body
|