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.
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