-85
-86
87
88
89
@@ -2414,30 +2393,20 @@
95
96
97
-98
-99
-100
-101
-102
+98
- # File 'lib/echosign/request.rb', line 85
+ # File 'lib/echosign/request.rb', line 87
-def self . create_transient_document ( token , file_name , file_handle , mime_type = nil )
+def self . create_transient_document ( token , base_uri , file_name , file_handle , mime_type = nil )
= { ' Access-Token ' => token }
+ if file_handle . is_a? ( String )
+ raise " Cannot find file: #{ file_handle } " unless File . exist? ( file_handle )
- begin
- response = HTTParty . post (
- ENDPOINT . fetch ( :transientDocument ) ,
- { ' File-Name ' => file_name ,
- ' Mime-Type ' => mime_type ,
- ' File ' => file_handle ,
- :multipart => true } ,
-
- )
- rescue Exception => error
- raise_error ( error )
+ file_handle = File . new ( file_handle )
end
+ body = { ' File-Name ' => file_name , ' Mime-Type ' => mime_type , ' File ' => file_handle }
+ response = post ( ENDPOINT . fetch ( :transientDocument , base_uri ) , body , )
JSON . parse ( response . body )
end
@@ -2449,7 +2418,7 @@
- .create_user (body, token) ⇒ Hash
+ .create_user (token, base_uri, body) ⇒ Hash
@@ -2526,19 +2495,19 @@
-59
-60
61
62
63
-64
+64
+65
+66
- # File 'lib/echosign/request.rb', line 59
+ # File 'lib/echosign/request.rb', line 61
-def self . create_user ( body , token )
- endpoint = ENDPOINT . fetch ( :user )
- = { ' Access-Token ' => token }
+def self . create_user ( token , base_uri , body )
+ endpoint = ENDPOINT . fetch ( :user , base_uri )
+ = { ' Access-Token ' => token }
response = post ( endpoint , body , )
JSON . parse ( response . body )
end
@@ -2550,7 +2519,7 @@
+
+
+
+
+ .get_base_uris (token) ⇒ Object
+
+
+
+
+
+
+
+
+
+
+
+49
+50
+51
+52
+53
+54
+
+
+ # File 'lib/echosign/request.rb', line 49
+
+def self . get_base_uris ( token )
+ endpoint = ENDPOINT . fetch ( :base_uri , BASE_URL )
+ = { ' Access-Token ' => token }
+ response = get ( endpoint , )
JSON . parse ( response . body )
end
@@ -2729,7 +2737,7 @@
- .get_library_document (token, library_document_id) ⇒ Hash
+ .get_library_document (token, base_uri, library_document_id) ⇒ Hash
@@ -2801,19 +2809,19 @@
-23
24
25
26
27
-28
+28
+29
- # File 'lib/echosign/library_documents/request.rb', line 23
+ # File 'lib/echosign/library_documents/request.rb', line 24
-def self . get_library_document ( token , library_document_id )
+def self . get_library_document ( token , base_uri , library_document_id )
= { ' Access-Token ' => token }
- endpoint = " #{ ENDPOINT . fetch ( :libraryDocument ) } / #{ library_document_id } "
+ endpoint = " #{ ENDPOINT . fetch ( :libraryDocument , base_uri ) } / #{ library_document_id } "
response = get ( endpoint , )
JSON . parse ( response . body )
end
@@ -2825,7 +2833,7 @@
- .get_library_document_file (token, library_document_id, file_id) ⇒ String
+ .get_library_document_file (token, base_uri, library_document_id, file_id) ⇒ String
@@ -2918,18 +2926,18 @@
-48
49
50
51
-52
+52
+53
- # File 'lib/echosign/library_documents/request.rb', line 48
+ # File 'lib/echosign/library_documents/request.rb', line 49
-def self . get_library_document_file ( token , library_document_id , file_id )
+def self . get_library_document_file ( token , base_uri , library_document_id , file_id )
= { ' Access-Token ' => token }
- endpoint = " #{ ENDPOINT . fetch ( :libraryDocument ) } / #{ library_document_id } /documents/ #{ file_id } "
+ endpoint = " #{ ENDPOINT . fetch ( :libraryDocument , base_uri ) } / #{ library_document_id } /documents/ #{ file_id } "
response = get ( endpoint , )
end
@@ -2940,7 +2948,7 @@
- .get_library_document_files (token, library_document_id) ⇒ Hash
+ .get_library_document_files (token, base_uri, library_document_id) ⇒ Hash
@@ -3017,19 +3025,19 @@
-35
36
37
38
39
-40
+40
+41
- # File 'lib/echosign/library_documents/request.rb', line 35
+ # File 'lib/echosign/library_documents/request.rb', line 36
-def self . get_library_document_files ( token , library_document_id )
+def self . get_library_document_files ( token , base_uri , library_document_id )
= { ' Access-Token ' => token }
- endpoint = " #{ ENDPOINT . fetch ( :libraryDocument ) } / #{ library_document_id } /documents "
+ endpoint = " #{ ENDPOINT . fetch ( :libraryDocument , base_uri ) } / #{ library_document_id } /documents "
response = get ( endpoint , )
JSON . parse ( response . body )
end
@@ -3041,7 +3049,7 @@
- .get_library_documents (token, user_id = nil, user_email = nil) ⇒ Hash
+ .get_library_documents (token, base_uri, user_id = nil, user_email = nil) ⇒ Hash
@@ -3141,23 +3149,23 @@
-9
10
11
12
13
14
15
-16
+16
+17
- # File 'lib/echosign/library_documents/request.rb', line 9
+ # File 'lib/echosign/library_documents/request.rb', line 10
-def self . get_library_documents ( token , user_id = nil , user_email = nil )
+def self . get_library_documents ( token , base_uri , user_id = nil , user_email = nil )
= { ' Access-Token ' => token }
- . merge! ( ' X-User-Id ' => user_id ) unless user_id . nil?
- . merge! ( ' X-User-Email ' => user_email ) unless user_email . nil?
- endpoint = ENDPOINT . fetch ( :libraryDocument )
+ [ ' X-User-Id ' ] = user_id unless user_id . nil?
+ [ ' X-User-Email ' ] = user_email unless user_email . nil?
+ endpoint = ENDPOINT . fetch ( :libraryDocument , base_uri )
response = get ( endpoint , )
JSON . parse ( response . body )
end
@@ -3169,7 +3177,7 @@
- .get_mega_signs (token) ⇒ Hash
+ .get_mega_signs (token, base_uri) ⇒ Hash
@@ -3230,201 +3238,29 @@
+23
24
25
26
-27
-28
+27
- # File 'lib/echosign/mega_sign/request.rb', line 24
+ # File 'lib/echosign/mega_sign/request.rb', line 23
-def self . get_mega_signs ( token )
+def self . get_mega_signs ( token , base_uri )
= { ' Access-Token ' => token }
- response = get ( ENDPOINT . fetch ( :mega_sign ) , )
+ response = get ( ENDPOINT . fetch ( :megaSign , base_uri ) , )
JSON . parse ( response . body )
end
-
-
-
-
-
- .get_token (credentials) ⇒ String
-
-
-
-
-
-
-
-
-
Retrieves the authentication token
-
-
-
-
-
-
-
-
-
-
-35
-36
-37
-38
-39
-40
-
-
- # File 'lib/echosign/request.rb', line 35
-
-def self . get_token ( credentials )
- = { }
- response = post ( ENDPOINT . fetch ( :token ) , credentials , )
- response_body = JSON . parse ( response . body )
- response_body . fetch ( " access_token " )
-end
-
-
-
-
-
-
-
-
- .get_token_from_refresh (credentials) ⇒ String
-
-
-
-
-
-
-
-
-
Retrieves the authentication token
-
-
-
-
-
-
-
-
-
-
-46
-47
-48
-49
-50
-51
-52
-
-
- # File 'lib/echosign/request.rb', line 46
-
-def self . get_token_from_refresh ( credentials )
- = { }
- response = post ( ENDPOINT . fetch ( :refresh ) , credentials , )
- response_body = JSON . parse ( response . body )
- response_body . fetch ( " access_token " )
-end
-
-
-
- .get_user (token, user_id) ⇒ Hash
+ .get_user (token, base_uri, user_id) ⇒ Hash
@@ -3496,21 +3332,21 @@
+117
+118
+119
+120
121
-122
-123
-124
-125
-126
+122
- # File 'lib/echosign/request.rb', line 121
+ # File 'lib/echosign/request.rb', line 117
-def self . get_user ( token , user_id )
+def self . get_user ( token , base_uri , user_id )
= { ' Access-Token ' => token }
- endpoint = " #{ ENDPOINT . fetch ( :user ) } / #{ user_id } "
+ endpoint = " #{ ENDPOINT . fetch ( :user , base_uri ) } / #{ user_id } "
response = get ( endpoint , )
- JSON . parse ( response )
+ JSON . parse ( response . body )
end
@@ -3520,7 +3356,7 @@
- .get_users (token, user_email) ⇒ Hash
+ .get_users (token, base_uri, user_email) ⇒ Hash
@@ -3597,21 +3433,21 @@
+105
+106
+107
+108
109
-110
-111
-112
-113
-114
+110
- # File 'lib/echosign/request.rb', line 109
+ # File 'lib/echosign/request.rb', line 105
-def self . get_users ( token , user_email )
+def self . get_users ( token , base_uri , user_email )
= { ' Access-Token ' => token }
- endpoint = " #{ ENDPOINT . fetch ( :user ) } ?x-user-email= #{ user_email } "
+ endpoint = " #{ ENDPOINT . fetch ( :user , base_uri ) } ?x-user-email= #{ user_email } "
response = get ( endpoint , )
- JSON . parse ( response )
+ JSON . parse ( response . body )
end
@@ -3621,7 +3457,7 @@
- .get_widget (token, widget_id) ⇒ Hash
+ .get_widget (token, base_uri, widget_id) ⇒ Hash
@@ -3677,19 +3513,19 @@
-82
-83
-84
-85
-86
-87
+62
+63
+64
+65
+66
+67
- # File 'lib/echosign/widget/request.rb', line 82
+ # File 'lib/echosign/widget/request.rb', line 62
-def self . get_widget ( token , widget_id )
+def self . get_widget ( token , base_uri , widget_id )
= { ' Access-Token ' => token }
- endpoint = " #{ ENDPOINT . fetch ( :widget ) } / #{ widget_id } "
+ endpoint = " #{ ENDPOINT . fetch ( :widget , base_uri ) } / #{ widget_id } "
response = get ( endpoint , )
JSON . parse ( response . body )
end
@@ -3701,7 +3537,7 @@
- .get_widget_audit_trail (token, widget_id) ⇒ Hash
+ .get_widget_audit_trail (token, base_uri, widget_id) ⇒ Hash
@@ -3757,18 +3593,18 @@
-116
-117
-118
-119
-120
+96
+97
+98
+99
+100
- # File 'lib/echosign/widget/request.rb', line 116
+ # File 'lib/echosign/widget/request.rb', line 96
-def self . get_widget_audit_trail ( token , widget_id )
+def self . get_widget_audit_trail ( token , base_uri , widget_id )
= { ' Access-Token ' => token }
- endpoint = " #{ ENDPOINT . fetch ( :widget ) } / #{ widget_id } /auditTrail "
+ endpoint = " #{ ENDPOINT . fetch ( :widget , base_uri ) } / #{ widget_id } /auditTrail "
response = get ( endpoint , )
end
@@ -3779,7 +3615,7 @@
- .get_widget_document_file (token, widget_id, document_id) ⇒ Hash
+ .get_widget_document_file (token, base_uri, widget_id, document_id) ⇒ Hash
@@ -3835,18 +3671,18 @@
-106
-107
-108
-109
-110
+86
+87
+88
+89
+90
- # File 'lib/echosign/widget/request.rb', line 106
+ # File 'lib/echosign/widget/request.rb', line 86
-def self . get_widget_document_file ( token , widget_id , document_id )
+def self . get_widget_document_file ( token , base_uri , widget_id , document_id )
= { ' Access-Token ' => token }
- endpoint = " #{ ENDPOINT . fetch ( :widget ) } / #{ widget_id } /documents/ #{ document_id } "
+ endpoint = " #{ ENDPOINT . fetch ( :widget , base_uri ) } / #{ widget_id } /documents/ #{ document_id } "
response = get ( endpoint , )
end
@@ -3857,7 +3693,7 @@
- .get_widget_documents (token, widget_id, version_id = nil, participant_email = nil) ⇒ Hash
+ .get_widget_documents (token, base_uri, widget_id, version_id = nil, participant_email = nil) ⇒ Hash
@@ -3913,21 +3749,21 @@
-93
-94
-95
-96
-97
-98
-99
-100
+73
+74
+75
+76
+77
+78
+79
+80
- # File 'lib/echosign/widget/request.rb', line 93
+ # File 'lib/echosign/widget/request.rb', line 73
-def self . get_widget_documents ( token , widget_id , version_id = nil , participant_email = nil )
+def self . get_widget_documents ( token , base_uri , widget_id , version_id = nil , participant_email = nil )
= { ' Access-Token ' => token }
- endpoint = " #{ ENDPOINT . fetch ( :widget ) } / #{ widget_id } /documents "
+ endpoint = " #{ ENDPOINT . fetch ( :widget , base_uri ) } / #{ widget_id } /documents "
endpoint << add_query ( endpoint , " versionId= #{ version_id } " ) unless version_id . nil?
endpoint << add_query ( endpoint , " participantEmail= #{ participant_email } " ) unless participant_email . nil?
response = get ( endpoint , )
@@ -3941,7 +3777,7 @@
- .get_widget_form_data (token, widget_id) ⇒ Hash
+ .get_widget_form_data (token, base_uri, widget_id) ⇒ Hash
@@ -3997,18 +3833,18 @@
-126
-127
-128
-129
-130
+106
+107
+108
+109
+110
- # File 'lib/echosign/widget/request.rb', line 126
+ # File 'lib/echosign/widget/request.rb', line 106
-def self . get_widget_form_data ( token , widget_id )
+def self . get_widget_form_data ( token , base_uri , widget_id )
= { ' Access-Token ' => token }
- endpoint = " #{ ENDPOINT . fetch ( :widget ) } / #{ widget_id } /formData "
+ endpoint = " #{ ENDPOINT . fetch ( :widget , base_uri ) } / #{ widget_id } /formData "
response = get ( endpoint , )
end
@@ -4019,7 +3855,7 @@
- .get_widgets (token, user_id = nil, user_email = nil) ⇒ Hash
+ .get_widgets (token, base_uri, user_id = nil, user_email = nil) ⇒ Hash
@@ -4106,23 +3942,23 @@
-69
-70
-71
-72
-73
-74
-75
-76
+49
+50
+51
+52
+53
+54
+55
+56
- # File 'lib/echosign/widget/request.rb', line 69
+ # File 'lib/echosign/widget/request.rb', line 49
-def self . get_widgets ( token , user_id = nil , user_email = nil )
+def self . get_widgets ( token , base_uri , user_id = nil , user_email = nil )
= { ' Access-Token ' => token }
- . merge! ( ' X-User-Id ' => user_id ) unless user_id . nil?
- . merge! ( ' X-User-Email ' => user_email ) unless user_email . nil?
- endpoint = " #{ ENDPOINT . fetch ( :widget ) } "
+ [ ' X-User-Id ' ] = user_id unless user_id . nil?
+ [ ' X-User-Email ' ] = user_email unless user_email . nil?
+ endpoint = " #{ ENDPOINT . fetch ( :widget , base_uri ) } "
response = get ( endpoint , )
JSON . parse ( response . body )
end
@@ -4134,7 +3970,7 @@
- .library_combined_document (token, library_document_id, auditReport) ⇒ String
+ .library_combined_document (token, base_uri, library_document_id, auditReport) ⇒ String
@@ -4211,20 +4047,20 @@
-70
71
72
73
74
-75
+75
+76
- # File 'lib/echosign/library_documents/request.rb', line 70
+ # File 'lib/echosign/library_documents/request.rb', line 71
-def self . library_combined_document ( token , library_document_id , auditReport )
+def self . library_combined_document ( token , base_uri , library_document_id , auditReport )
= { ' Access-Token ' => token }
- endpoint = " #{ ENDPOINT . fetch ( :libraryDocument ) } / #{ library_document_id } /combinedDocument "
- endpoint << add_query ( endpoint , " auditReport= #{ auditReport } " )
+ endpoint = " #{ ENDPOINT . fetch ( :libraryDocument , base_uri ) } / #{ library_document_id } /combinedDocument "
+ endpoint << add_query ( endpoint , " auditReport= #{ auditReport } " )
response = get ( endpoint , )
end
@@ -4235,7 +4071,7 @@
- .library_document_audit_trail (token, library_document_id) ⇒ String
+ .library_document_audit_trail (token, base_uri, library_document_id) ⇒ String
@@ -4312,18 +4148,18 @@
-59
60
61
62
-63
+63
+64
- # File 'lib/echosign/library_documents/request.rb', line 59
+ # File 'lib/echosign/library_documents/request.rb', line 60
-def self . library_document_audit_trail ( token , library_document_id )
+def self . library_document_audit_trail ( token , base_uri , library_document_id )
= { ' Access-Token ' => token }
- endpoint = " #{ ENDPOINT . fetch ( :libraryDocument ) } / #{ library_document_id } /auditTrail "
+ endpoint = " #{ ENDPOINT . fetch ( :libraryDocument , base_uri ) } / #{ library_document_id } /auditTrail "
response = get ( endpoint , )
end
@@ -4334,7 +4170,7 @@
- .mega_sign_combined_pdf (token, mega_sign_id, versionId, participantEmail, attachSupportingDocuments, auditReport) ⇒ String
+ .mega_sign_combined_pdf (token, base_uri, mega_sign_id, versionId, participantEmail, attachSupportingDocuments, auditReport) ⇒ String
@@ -4412,6 +4248,7 @@
+58
59
60
61
@@ -4423,11 +4260,12 @@
67
- # File 'lib/echosign/mega_sign/request.rb', line 59
+ # File 'lib/echosign/mega_sign/request.rb', line 58
-def self . mega_sign_combined_pdf ( token , mega_sign_id , versionId , participantEmail , attachSupportingDocuments , auditReport )
+def self . mega_sign_combined_pdf ( token , base_uri , mega_sign_id , versionId , participantEmail ,
+ attachSupportingDocuments , auditReport )
= { ' Access-Token ' => token }
- endpoint = " #{ ENDPOINT . fetch ( :mega_sign ) } / #{ mega_sign_id } /combinedDocument "
+ endpoint = " #{ ENDPOINT . fetch ( :megaSign , base_uri ) } / #{ mega_sign_id } /combinedDocument "
endpoint << add_query ( endpoint , " versionId= #{ versionId } " ) unless versionId . nil?
endpoint << add_query ( endpoint , " participantEmail= #{ participantEmail } " ) unless participantEmail . nil?
endpoint << add_query ( endpoint , " attachSupportingDocuments= #{ attachSupportingDocuments } " )
@@ -4442,7 +4280,7 @@
- .mega_sign_document_file (token, mega_sign_id, document_id) ⇒ String
+ .mega_sign_document_file (token, base_uri, mega_sign_id, document_id) ⇒ String
@@ -4528,9 +4366,9 @@
# File 'lib/echosign/mega_sign/request.rb', line 85
-def self . mega_sign_document_file ( token , mega_sign_id , document_id )
+def self . mega_sign_document_file ( token , base_uri , mega_sign_id , document_id )
= { ' Access-Token ' => token }
- endpoint = " #{ ENDPOINT . fetch ( :mega_sign ) } / #{ mega_sign_id } /documents/ #{ document_id } "
+ endpoint = " #{ ENDPOINT . fetch ( :megaSign , base_uri ) } / #{ mega_sign_id } /documents/ #{ document_id } "
response = get ( endpoint , )
end
@@ -4541,7 +4379,7 @@
- .mega_sign_documents (token, mega_sign_id, recipient_email = nil, format = nil, version_id = nil) ⇒ Hash
+ .mega_sign_documents (token, base_uri, mega_sign_id, recipient_email = nil, format = nil, version_id = nil) ⇒ Hash
@@ -4659,22 +4497,22 @@
-109
-110
111
112
113
114
115
116
-117
+117
+118
+119
- # File 'lib/echosign/mega_sign/request.rb', line 109
+ # File 'lib/echosign/mega_sign/request.rb', line 111
-def self . mega_sign_documents ( token , mega_sign_id , recipient_email = nil , format = nil , version_id = nil )
+def self . mega_sign_documents ( token , base_uri , mega_sign_id , recipient_email = nil , format = nil , version_id = nil )
= { ' Access-Token ' => token }
- endpoint = " #{ ENDPOINT . fetch ( :mega_sign ) } / #{ mega_sign_id } /documents "
+ endpoint = " #{ ENDPOINT . fetch ( :megaSign , base_uri ) } / #{ mega_sign_id } /documents "
endpoint << add_query ( endpoint , " versionId= #{ version_id } " ) unless version_id . nil?
endpoint << add_query ( endpoint , " participantEmail= #{ recipient_email } " ) unless version_id . nil?
endpoint << add_query ( endpoint , " supportingDocumentContentFormat= #{ format } " ) unless format . nil?
@@ -4689,7 +4527,7 @@
- .mega_sign_form_data (token, mega_sign_id) ⇒ String
+ .mega_sign_form_data (token, base_uri, mega_sign_id) ⇒ String
@@ -4776,9 +4614,9 @@
# File 'lib/echosign/mega_sign/request.rb', line 74
-def self . mega_sign_form_data ( token , mega_sign_id )
+def self . mega_sign_form_data ( token , base_uri , mega_sign_id )
= { ' Access-Token ' => token }
- endpoint = " #{ ENDPOINT . fetch ( :mega_sign ) } / #{ mega_sign_id } /formData "
+ endpoint = " #{ ENDPOINT . fetch ( :megaSign , base_uri ) } / #{ mega_sign_id } /formData "
response = get ( endpoint , )
end
@@ -4789,7 +4627,7 @@
- .mega_sign_info (token, mega_sign_id) ⇒ Hash
+ .mega_sign_info (token, base_uri, mega_sign_id) ⇒ Hash
@@ -4866,19 +4704,19 @@
+34
35
36
37
38
-39
-40
+39
- # File 'lib/echosign/mega_sign/request.rb', line 35
+ # File 'lib/echosign/mega_sign/request.rb', line 34
-def self . mega_sign_info ( token , mega_sign_id )
+def self . mega_sign_info ( token , base_uri , mega_sign_id )
= { ' Access-Token ' => token }
- endpoint = " #{ ENDPOINT . fetch ( :mega_sign ) } / #{ mega_sign_id } "
+ endpoint = " #{ ENDPOINT . fetch ( :megaSign , base_uri ) } / #{ mega_sign_id } "
response = get ( endpoint , )
JSON . parse ( response . body )
end
@@ -4890,7 +4728,7 @@
- .mega_sign_signing_urls (token, mega_sign_id) ⇒ Hash
+ .mega_sign_signing_urls (token, base_uri, mega_sign_id) ⇒ Hash
@@ -4967,19 +4805,19 @@
+46
47
48
49
50
-51
-52
+51
- # File 'lib/echosign/mega_sign/request.rb', line 47
+ # File 'lib/echosign/mega_sign/request.rb', line 46
-def self . mega_sign_signing_urls ( token , mega_sign_id )
+def self . mega_sign_signing_urls ( token , base_uri , mega_sign_id )
= { ' Access-Token ' => token }
- endpoint = " #{ ENDPOINT . fetch ( :mega_sign ) } / #{ mega_sign_id } /signingUrls "
+ endpoint = " #{ ENDPOINT . fetch ( :megaSign , base_uri ) } / #{ mega_sign_id } /signingUrls "
response = get ( endpoint , )
JSON . parse ( response . body )
end
@@ -4991,7 +4829,7 @@
- .personalize_widget (token, widget_id, personalization) ⇒ Hash
+ .personalize_widget (token, base_uri, widget_id, personalization) ⇒ Hash
@@ -5079,35 +4917,15 @@
25
26
27
-28
-29
-30
-31
-32
-33
-34
-35
-36
-37
-38
+28
# File 'lib/echosign/widget/request.rb', line 23
-def self . personalize_widget ( token , widget_id , personalization )
+def self . personalize_widget ( token , base_uri , widget_id , personalization )
= { ' Access-Token ' => token }
- endpoint = " #{ ENDPOINT . fetch ( :widget ) } / #{ widget_id } /personalize "
-
- begin
- response = HTTParty . put (
- endpoint ,
- personalization . to_json ,
-
- )
- rescue Exception => error
- raise_error ( error )
- end
-
+ endpoint = " #{ ENDPOINT . fetch ( :widget , base_uri ) } / #{ widget_id } /personalize "
+ response = put ( endpoint , personalization . to_json , )
JSON . parse ( response . body )
end
@@ -5118,7 +4936,7 @@
- .update_agreement_status (token, agreement_id, request_body) ⇒ Hash
+ .update_agreement_status (token, base_uri, agreement_id, request_body) ⇒ Hash
@@ -5211,40 +5029,20 @@
-126
-127
128
129
130
131
132
-133
-134
-135
-136
-137
-138
-139
-140
-141
+133
- # File 'lib/echosign/agreement/request.rb', line 126
+ # File 'lib/echosign/agreement/request.rb', line 128
-def self . update_agreement_status ( token , agreement_id , request_body )
+def self . update_agreement_status ( token , base_uri , agreement_id , request_body )
= { ' Access-Token ' => token }
- endpoint = " #{ ENDPOINT . fetch ( :agreement ) } / #{ agreement_id } /status "
-
- begin
- response = HTTParty . put (
- endpoint ,
- request_body . to_json ,
-
- )
- rescue Exception => error
- raise_error ( error )
- end
-
+ endpoint = " #{ ENDPOINT . fetch ( :agreement , base_uri ) } / #{ agreement_id } /status "
+ response = put ( endpoint , request_body . to_json , )
JSON . parse ( response . body )
end
@@ -5255,7 +5053,7 @@
- .update_mega_sign_status (token, mega_sign_id, request_body) ⇒ Hash
+ .update_mega_sign_status (token, base_uri, mega_sign_id, request_body) ⇒ Hash
@@ -5348,40 +5146,20 @@
-126
127
128
129
130
131
-132
-133
-134
-135
-136
-137
-138
-139
-140
-141
+132
- # File 'lib/echosign/mega_sign/request.rb', line 126
+ # File 'lib/echosign/mega_sign/request.rb', line 127
-def self . update_mega_sign_status ( token , mega_sign_id , request_body )
+def self . update_mega_sign_status ( token , base_uri , mega_sign_id , request_body )
= { ' Access-Token ' => token }
- endpoint = " #{ ENDPOINT . fetch ( :mega_sign ) } / #{ mega_sign_id } /status "
-
- begin
- response = HTTParty . put (
- endpoint ,
- request_body . to_json ,
-
- )
- rescue Exception => error
- raise_error ( error )
- end
-
+ endpoint = " #{ ENDPOINT . fetch ( :megaSign , base_uri ) } / #{ mega_sign_id } /status "
+ response = put ( endpoint , request_body . to_json , )
JSON . parse ( response . body )
end
@@ -5392,7 +5170,7 @@
- .update_widget_status (token, widget_id, status) ⇒ Hash
+ .update_widget_status (token, base_uri, widget_id, status) ⇒ Hash
@@ -5475,40 +5253,20 @@
-46
-47
-48
-49
-50
-51
-52
-53
-54
-55
-56
-57
-58
-59
-60
-61
+36
+37
+38
+39
+40
+41
- # File 'lib/echosign/widget/request.rb', line 46
+ # File 'lib/echosign/widget/request.rb', line 36
-def self . update_widget_status ( token , widget_id , status )
+def self . update_widget_status ( token , base_uri , widget_id , status )
= { ' Access-Token ' => token }
- endpoint = " #{ ENDPOINT . fetch ( :widget ) } / #{ widget_id } /status "
-
- begin
- response = HTTParty . put (
- endpoint ,
- status . to_json ,
-
- )
- rescue Exception => error
- raise_error ( error )
- end
-
+ endpoint = " #{ ENDPOINT . fetch ( :widget , base_uri ) } / #{ widget_id } /status "
+ response = put ( endpoint , status . to_json , )
JSON . parse ( response . body )
end
@@ -5521,7 +5279,7 @@
diff --git a/doc/Echosign/Request/EndpointHash.html b/doc/Echosign/Request/EndpointHash.html
new file mode 100644
index 0000000..3768aba
--- /dev/null
+++ b/doc/Echosign/Request/EndpointHash.html
@@ -0,0 +1,328 @@
+
+
+
+
+
+
+ Class: Echosign::Request::EndpointHash
+
+ — Documentation by YARD 0.9.16
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Class: Echosign::Request::EndpointHash
+
+
+
+
+
+
+
+ Inherits:
+
+ Object
+
+
+ Object
+
+ Echosign::Request::EndpointHash
+
+
+ show all
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Defined in:
+ lib/echosign/request.rb
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Instance Method Summary
+ collapse
+
+
+
+
+
+
+
Constructor Details
+
+
+
+
+ #initialize (paths) ⇒ EndpointHash
+
+
+
+
+
+
+
+
+
Returns a new instance of EndpointHash
+
+
+
+
+
+
+
+
+
+
+
+
+
+20
+21
+22
+
+
+ # File 'lib/echosign/request.rb', line 20
+
+def initialize ( paths )
+ @paths = paths
+end
+
+
+
+
+
+
+
+
+
+
Instance Method Details
+
+
+
+
+
+ #fetch (endpoint, base_uri) ⇒ String
+
+
+
+
+
+
+
+
+
Get an endpoint by name, using the given base_uri
+
+
+
+
+
+
+
+
+
+
+29
+30
+31
+
+
+ # File 'lib/echosign/request.rb', line 29
+
+def fetch ( endpoint , base_uri )
+ File . join ( base_uri , BASE_PATH , @paths . fetch ( endpoint ) )
+end
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/doc/Echosign/Request/Failure.html b/doc/Echosign/Request/Failure.html
index be9e0fd..bbded39 100644
--- a/doc/Echosign/Request/Failure.html
+++ b/doc/Echosign/Request/Failure.html
@@ -280,7 +280,7 @@
diff --git a/doc/Echosign/RequestFormField.html b/doc/Echosign/RequestFormField.html
index ea4e259..fbbf8a7 100644
--- a/doc/Echosign/RequestFormField.html
+++ b/doc/Echosign/RequestFormField.html
@@ -211,13 +211,13 @@
+9
10
11
-12
-13
+12
- # File 'lib/echosign/agreement/request_form_field.rb', line 10
+ # File 'lib/echosign/agreement/request_form_field.rb', line 9
def initialize ( params )
require_keys ( [ :locations , :name ] , params )
@@ -234,7 +234,7 @@
diff --git a/doc/Echosign/RequiredParameterError.html b/doc/Echosign/RequiredParameterError.html
index d2c0d42..2e85914 100644
--- a/doc/Echosign/RequiredParameterError.html
+++ b/doc/Echosign/RequiredParameterError.html
@@ -114,7 +114,7 @@
diff --git a/doc/Echosign/UrlFileInfo.html b/doc/Echosign/UrlFileInfo.html
index 63e5d3d..e71c2ea 100644
--- a/doc/Echosign/UrlFileInfo.html
+++ b/doc/Echosign/UrlFileInfo.html
@@ -264,13 +264,13 @@
-12
-13
-14
-15
+15
+16
+17
+18
- # File 'lib/echosign/agreement/url_file_info.rb', line 12
+ # File 'lib/echosign/agreement/url_file_info.rb', line 15
def initialize ( params )
require_keys ( [ :url ] , params )
@@ -287,7 +287,7 @@
diff --git a/doc/Echosign/User.html b/doc/Echosign/User.html
index 9c64ecb..57583ea 100644
--- a/doc/Echosign/User.html
+++ b/doc/Echosign/User.html
@@ -389,13 +389,13 @@
-23
-24
-25
-26
+30
+31
+32
+33
- # File 'lib/echosign/user.rb', line 23
+ # File 'lib/echosign/user.rb', line 30
def initialize ( params )
require_keys ( [ :firstName , :lastName , :email , :password ] , params )
@@ -412,7 +412,7 @@
diff --git a/doc/Echosign/Validatable.html b/doc/Echosign/Validatable.html
index 6491a98..149055e 100644
--- a/doc/Echosign/Validatable.html
+++ b/doc/Echosign/Validatable.html
@@ -218,6 +218,8 @@
+12
+13
14
15
16
@@ -228,25 +230,23 @@
21
22
23
-24
-25
-26
+24
- # File 'lib/echosign/validatable.rb', line 14
+ # File 'lib/echosign/validatable.rb', line 12
def require_exactly_one ( field_group , params )
set_fields = 0
field_group . each do | field |
begin
- validate_field ( field , params )
+ validate_field ( field , params )
rescue RequiredParameterError
next
else
set_fields += 1
end
end
- raise ParameterError , " Exactly one of #{ field_group . to_s } should be present " if set_fields != 1
+ raise ParameterError , " Exactly one of #{ field_group } should be present " if set_fields != 1
end
@@ -268,18 +268,18 @@
+6
+7
8
9
-10
-11
-12
+10
- # File 'lib/echosign/validatable.rb', line 8
+ # File 'lib/echosign/validatable.rb', line 6
def require_keys ( required_fields , params )
required_fields . each do | field |
- validate_field ( field , params )
+ validate_field ( field , params )
end
end
@@ -300,9 +300,8 @@
TODO (bernardworthy) A validator accepting a block for conditional
-execution might be useful.
-
-
Maybe require_keys should accept a block. Figure out later.
+execution might be useful. Maybe require_keys should accept a block.
+Figure out later.
@@ -316,17 +315,17 @@
+30
+31
32
33
34
35
36
-37
-38
-39
+37
- # File 'lib/echosign/validatable.rb', line 32
+ # File 'lib/echosign/validatable.rb', line 30
def validate_field ( field , params )
begin
@@ -346,7 +345,7 @@
diff --git a/doc/Echosign/Widget.html b/doc/Echosign/Widget.html
index 1948249..a5408a6 100644
--- a/doc/Echosign/Widget.html
+++ b/doc/Echosign/Widget.html
@@ -187,7 +187,7 @@
- #initialize (user_id = nil, user_email = nil, name, fileInfos, signatureFlow, widget_completion_info) ⇒ Widget
+ #initialize (user_id = nil, user_email = nil, params) ⇒ Widget
@@ -231,7 +231,7 @@ Constructor Details
- #initialize (user_id = nil, user_email = nil, name, fileInfos, signatureFlow, widget_completion_info) ⇒ Widget
+ #initialize (user_id = nil, user_email = nil, params) ⇒ Widget
@@ -329,12 +329,195 @@
-
-
-
-
-
-
+ Options Hash (params ):
+
+
+
+ :name
+ (String )
+
+
+
+
+ —
+
The name of the widget that will be used to identify it, in emails and on
+the website (REQUIRED)
+
+
+
+
+
+ :fileInfos
+ (Array )
+
+
+
+
+ —
+
Populate with instances of Echosign::Fileinfo . A list
+of one or more files (or references to files) that will be used to create
+the widget. If more than one file is provided, they will be combined before
+the widget is created. Library documents are not permitted. Note: Only one
+of the four parameters in every Fileinfo object must be specified
+(REQUIRED)
+
+
+
+
+
+ :formFieldLayerTemplates
+ (Array )
+
+
+
+
+ —
+
Populate with instances of Echosign::Fileinfo .
+Specifies the form field layer template or source of form fields to apply
+on the files in this transaction. If specified, the FileInfo for this
+parameter must refer to a form field layer template via libraryDocumentId
+or libraryDocumentName, or if specified via transientDocumentId or
+documentURL, it must be of a supported file type. Note: Only one of the
+four parameters in every FileInfo object must be specified.
+
+
+
+
+
+ :widgetCompletionInfo
+ (Echosign::WidgetCompletionInfo )
+
+
+
+
+ —
+
URL and associated properties for the success page the user will be taken
+to after filling out the widget
+
+
+
+
+
+ :callbackInfo
+ (String )
+
+
+
+
+ —
+
A publicly accessible url to which EchoSign will perform an HTTP PUT
+operation with the final signed PDF file. HTTP authentication is supported
+using standard embedded syntax - i.e. username:password@your.server.com/path/to/file .
+EchoSign can also communicate with your system using HTTP GET, every time
+there is a new agreement event. Please contact support@echosign.com if you
+wish to use this option.
+
+
+
+
+
+ :securityOptions
+ (Echosign::WidgetSecurityOption )
+
+
+
+
+ —
+
Sets optional secondary security parameters for your widget
+
+
+
+
+
+ :locale
+ (String )
+
+
+
+
+ —
+
The locale associated with this widget - specifies the language for the
+signing page and emails, for example en_US or fr_FR. If none specified,
+defaults to the language configured for the widget creator
+
+
+
+
+
+ :counterSigners
+ (Echosign::CounterSignerInfo )
+
+
+
+
+ —
+
A list of one or more counter signers
+
+
+
+
+
+ :vaultingInfo
+ (Echosign::WidgetVaultingInfo )
+
+
+
+
+ —
+
Sets the vaulting properties that allows EchoSign to securely store
+documents with a vault provider
+
+
+
+
+
+ :mergeFieldInfo
+ (Echosign::WidgetMergefieldInfo )
+
+
+
+
+ —
+
Optional default values for fields to merge into the document. The values
+will be presented to the signers for editable fields; for read-only fields
+the provided values will not be editable during the signing process.
+Merging data into fields is currently not supported when used with
+libraryDocumentId or libraryDocumentName. Only file and url are curently
+supported
+
+
+
+
+
+ :widgetAuthFailureInfo
+ (Echosign::WidgetCompletionInfo )
+
+
+
+
+ —
+
URL and associated properties for the error page the user will be taken
+after failing to authenticate
+
+
+
+
+
+ :widgetSignerSecurityOptions
+ (Echosign::WidgetSignerSecurityOption )
+
+
+
+
+ —
+
Security options that apply to widget signers
+
+
+
+
+
+
@@ -343,33 +526,6 @@
-33
-34
-35
-36
-37
-38
-39
-40
-41
-42
-43
-44
-45
-46
-47
-48
-49
-50
-51
-52
-53
-54
-55
-56
-57
-58
-59
60
61
62
@@ -483,14 +639,41 @@
170
171
172
-173
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
- # File 'lib/echosign/widget.rb', line 33
+ # File 'lib/echosign/widget.rb', line 60
-def initialize ( user_id = nil , user_email = nil , name , fileInfos , signatureFlow , widget_completion_info )
- @user_id = user_id
+def initialize ( user_id = nil , user_email = nil , params )
+ require_keys ( [ :name , :fileInfos , :signatureFlow ] , params )
+ @user_id = user_id
@user_email = user_email
- merge! ( {
- widgetCreationInfo: {
- name: name ,
- fileInfos: fileInfos ,
- signatureFlow: signatureFlow ,
- widgetCompletion_Info: widget_completion_info
- }
- } )
+
+ merge! ( {
+ widgetCreationInfo: {
+ name: params [ :name ] ,
+ fileInfos: params [ :fileInfos ] ,
+ signatureFlow: params [ :signatureFlow ] ,
+ widgetCompletion_Info: params [ :widget_completion_info ]
+ }
+ } )
end
@@ -667,12 +850,12 @@
+12
13
-14
-15
+14
- # File 'lib/echosign/widget.rb', line 13
+ # File 'lib/echosign/widget.rb', line 12
def user_email
@user_email
@@ -710,12 +893,12 @@
+12
13
-14
-15
+14
- # File 'lib/echosign/widget.rb', line 13
+ # File 'lib/echosign/widget.rb', line 12
def user_id
@user_id
@@ -731,7 +914,7 @@
diff --git a/doc/Echosign/WidgetCompletionInfo.html b/doc/Echosign/WidgetCompletionInfo.html
index edb6c6a..4196ad0 100644
--- a/doc/Echosign/WidgetCompletionInfo.html
+++ b/doc/Echosign/WidgetCompletionInfo.html
@@ -278,28 +278,28 @@
-12
-13
-14
-15
-16
-17
-18
-19
-20
-21
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
- # File 'lib/echosign/widget/widget_completion_info.rb', line 12
+ # File 'lib/echosign/widget/widget_completion_info.rb', line 24
def initialize ( params )
require_keys ( [ :url ] )
merge! (
- {
- :deframe => deframe ,
- :delay => delay ,
- :url => url ,
- }
+ {
+ deframe: deframe ,
+ delay: delay ,
+ url: url ,
+ }
)
end
@@ -313,7 +313,7 @@
diff --git a/doc/Echosign/WidgetPersonalization.html b/doc/Echosign/WidgetPersonalization.html
index 5ed20c9..3c03894 100644
--- a/doc/Echosign/WidgetPersonalization.html
+++ b/doc/Echosign/WidgetPersonalization.html
@@ -180,8 +180,10 @@
Initialization object
expiration (date, optional): Expiration date for the personalization of
-this widget. After this date, the identity of the signer will not be
-assumed by EchoSign.,
+this widget. After this date, the
+
+identity of the signer will not be assumed by EchoSign.,
+
@@ -295,13 +297,13 @@
-15
-16
-17
-18
+18
+19
+20
+21
- # File 'lib/echosign/widget/widget_personalization.rb', line 15
+ # File 'lib/echosign/widget/widget_personalization.rb', line 18
def initialize ( params )
require_keys ( [ :email ] , params )
@@ -318,7 +320,7 @@
diff --git a/doc/Echosign/WidgetSecurityOption.html b/doc/Echosign/WidgetSecurityOption.html
index 6d55d47..3348642 100644
--- a/doc/Echosign/WidgetSecurityOption.html
+++ b/doc/Echosign/WidgetSecurityOption.html
@@ -330,12 +330,12 @@
-16
-17
-18
+28
+29
+30
- # File 'lib/echosign/widget/widget_security_option.rb', line 16
+ # File 'lib/echosign/widget/widget_security_option.rb', line 28
def initialize ( params )
merge! ( params )
@@ -351,7 +351,7 @@
diff --git a/doc/Echosign/WidgetSignerSecurityOption.html b/doc/Echosign/WidgetSignerSecurityOption.html
index 75eec84..4a74373 100644
--- a/doc/Echosign/WidgetSignerSecurityOption.html
+++ b/doc/Echosign/WidgetSignerSecurityOption.html
@@ -265,13 +265,13 @@
-12
-13
-14
-15
+15
+16
+17
+18
- # File 'lib/echosign/widget/widget_signer_security_option.rb', line 12
+ # File 'lib/echosign/widget/widget_signer_security_option.rb', line 15
def initialize ( params )
require_keys ( [ :authenticationMethod ] , params )
@@ -288,7 +288,7 @@
diff --git a/doc/Echosign/WidgetStatus.html b/doc/Echosign/WidgetStatus.html
index 1f334f8..c8585fc 100644
--- a/doc/Echosign/WidgetStatus.html
+++ b/doc/Echosign/WidgetStatus.html
@@ -281,14 +281,14 @@
-13
-14
-15
16
-17
+17
+18
+19
+20
- # File 'lib/echosign/widget/widget_status.rb', line 13
+ # File 'lib/echosign/widget/widget_status.rb', line 16
def initialize ( params )
require_keys ( [ :value ] , params )
@@ -306,7 +306,7 @@
diff --git a/doc/Echosign/WidgetVaultingInfo.html b/doc/Echosign/WidgetVaultingInfo.html
index 03662ee..2943dd9 100644
--- a/doc/Echosign/WidgetVaultingInfo.html
+++ b/doc/Echosign/WidgetVaultingInfo.html
@@ -257,7 +257,7 @@
diff --git a/doc/_index.html b/doc/_index.html
index f4b19a9..676f810 100644
--- a/doc/_index.html
+++ b/doc/_index.html
@@ -129,6 +129,13 @@ Namespace Listing A-Z
+
+ EndpointHash
+
+ (Echosign::Request)
+
+
+
@@ -361,7 +368,7 @@ Namespace Listing A-Z
diff --git a/doc/class_list.html b/doc/class_list.html
index f16c980..c077f6b 100644
--- a/doc/class_list.html
+++ b/doc/class_list.html
@@ -43,7 +43,7 @@
-Failure < StandardError
Echosign::Request
+Failure < StandardError
Echosign::Request
diff --git a/doc/file.README.html b/doc/file.README.html
index 3572f9b..a90b6ce 100644
--- a/doc/file.README.html
+++ b/doc/file.README.html
@@ -58,6 +58,9 @@
+
+
echosign
Ruby Gem to consume Adobe's EchoSign e-signature service - REST service
@@ -71,11 +74,11 @@
Installation
Documentation
The bulk of the API is on the Echosign::Client
+href="http://rdoc.info/github/chamberflag/echosign/frames/Echosign/Client">Echosign::Client
class
You can read Echosign's full API
+href="http://rdoc.info/github/chamberflag/echosign/frames">API
Documentation
It wouldn't hurt to read Adobe's Documentation
Usage
-Initializing a client
+Initializing a client with an existing refresh token
+
+require ' echosign '
+
+credentials = Echosign :: Credentials . new ( app_id , app_secret )
+access_token = credentials . refresh_access_token ( refresh_token )
+
+client = Echosign :: Client . new ( access_token )
+
+
+Initializing a client with an authorization code
+
+Workflow before authorizing: - redirect_uri
must be set in the
+EchoSign API configuration - scope
will typically be something
+like 'agreement_write:account agreement_send:account'
require ' echosign '
-credentials = Echosign :: Refresh . new ( app_id , app_secret , refresh_token )
+credentials = Echosign :: Credentials . new ( app_id , app_secret )
+redirect_to credentials . authorize_url ( redirect_uri , scope )
+
+
+Workflow after authorizing: “` require 'echosign'
+
+credentials = Echosign::Credentials.new(app_id, app_secret) token = credentials.get_token(params , redirect_uri)
+
+you should persist credentials.refresh_token somewhere to use in future
+
+client = Echosign::Client.new(token) “`
+
+Initializing a client with a legacy integration key
+
+require ' echosign '
-client = Echosign :: Client . new ( credentials )
+client = Echosign :: Client . new ( integration_key )
Setting up a new agreement from a URL
@@ -109,9 +141,9 @@ Setting up a new agreement
role: ' SIGNER ' , email: ' superguy@whatsit.com '
}
-agreement_info_params = {
+agreement_info = {
fileInfos: [ Echosign :: Fileinfo . new ( file_info_params ) ] ,
- recipients: [ Echosign :: Recipient . new ( recipient_params ) ] ,
+ recipientSetInfos: [ Echosign :: Recipient . new ( recipient_params ) ] ,
signatureFlow: " SENDER_SIGNS_LAST " ,
signatureType: " ESIGN " ,
name: " Rumplestiltskin Contract "
@@ -149,7 +181,7 @@ Sending a transie
diff --git a/doc/index.html b/doc/index.html
index 03e846d..4fdfc76 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -58,6 +58,9 @@
+
+
echosign
Ruby Gem to consume Adobe's EchoSign e-signature service - REST service
@@ -71,11 +74,11 @@
Installation
Documentation
The bulk of the API is on the Echosign::Client
+href="http://rdoc.info/github/chamberflag/echosign/frames/Echosign/Client">Echosign::Client
class
You can read Echosign's full API
+href="http://rdoc.info/github/chamberflag/echosign/frames">API
Documentation
It wouldn't hurt to read Adobe's Documentation
Usage
-Initializing a client
+Initializing a client with an existing refresh token
+
+require ' echosign '
+
+credentials = Echosign :: Credentials . new ( app_id , app_secret )
+access_token = credentials . refresh_access_token ( refresh_token )
+
+client = Echosign :: Client . new ( access_token )
+
+
+Initializing a client with an authorization code
+
+Workflow before authorizing: - redirect_uri
must be set in the
+EchoSign API configuration - scope
will typically be something
+like 'agreement_write:account agreement_send:account'
require ' echosign '
-credentials = Echosign :: Refresh . new ( app_id , app_secret , refresh_token )
+credentials = Echosign :: Credentials . new ( app_id , app_secret )
+redirect_to credentials . authorize_url ( redirect_uri , scope )
+
+
+Workflow after authorizing: “` require 'echosign'
+
+credentials = Echosign::Credentials.new(app_id, app_secret) token = credentials.get_token(params , redirect_uri)
+
+you should persist credentials.refresh_token somewhere to use in future
+
+client = Echosign::Client.new(token) “`
+
+Initializing a client with a legacy integration key
+
+require ' echosign '
-client = Echosign :: Client . new ( credentials )
+client = Echosign :: Client . new ( integration_key )
Setting up a new agreement from a URL
@@ -109,9 +141,9 @@ Setting up a new agreement
role: ' SIGNER ' , email: ' superguy@whatsit.com '
}
-agreement_info_params = {
+agreement_info = {
fileInfos: [ Echosign :: Fileinfo . new ( file_info_params ) ] ,
- recipients: [ Echosign :: Recipient . new ( recipient_params ) ] ,
+ recipientSetInfos: [ Echosign :: Recipient . new ( recipient_params ) ] ,
signatureFlow: " SENDER_SIGNS_LAST " ,
signatureType: " ESIGN " ,
name: " Rumplestiltskin Contract "
@@ -149,7 +181,7 @@ Sending a transie
diff --git a/doc/method_list.html b/doc/method_list.html
index 2e2f843..0f5b9ae 100644
--- a/doc/method_list.html
+++ b/doc/method_list.html
@@ -45,6 +45,14 @@
+
+
+
+
+
#agreement_combined_pdf
Echosign::Client
@@ -52,7 +60,7 @@
-
+
agreement_combined_pdf
Echosign::Request
@@ -60,7 +68,7 @@
-
+
#agreement_document_file
Echosign::Client
@@ -68,7 +76,7 @@
-
+
agreement_document_file
Echosign::Request
@@ -76,7 +84,7 @@
-
+
#agreement_documents
Echosign::Client
@@ -84,7 +92,7 @@
-
+
agreement_documents
Echosign::Request
@@ -92,7 +100,7 @@
-
+
#agreement_form_data
Echosign::Client
@@ -100,7 +108,7 @@
-
+
agreement_form_data
Echosign::Request
@@ -108,7 +116,7 @@
-
+
#agreement_info
Echosign::Client
@@ -116,7 +124,7 @@
-
+
agreement_info
Echosign::Request
@@ -124,7 +132,7 @@
-
+
#agreement_signing_urls
Echosign::Client
@@ -132,7 +140,7 @@
-
+
agreement_signing_urls
Echosign::Request
@@ -140,7 +148,7 @@
-
+
#audit_trail_pdf
Echosign::Client
@@ -148,7 +156,7 @@
-
+
audit_trail_pdf
Echosign::Request
@@ -156,6 +164,14 @@
+
+
+
+
+
#cancel_agreement
@@ -268,6 +284,22 @@
+
+
+
+
+
+
+
+
#fetch
+
Echosign::Request::EndpointHash
+
+
+
+
#get_agreements
@@ -285,6 +317,14 @@
+
+
+
+
+
#get_library_document
Echosign::Client
@@ -292,7 +332,7 @@
-
+
get_library_document
Echosign::Request
@@ -300,7 +340,7 @@
-
+
#get_library_document_file
Echosign::Client
@@ -308,7 +348,7 @@
-
+
get_library_document_file
Echosign::Request
@@ -316,7 +356,7 @@
-
+
#get_library_document_files
Echosign::Client
@@ -324,7 +364,7 @@
-
+
get_library_document_files
Echosign::Request
@@ -332,7 +372,7 @@
-
+
#get_library_documents
Echosign::Client
@@ -340,7 +380,7 @@
-
+
get_library_documents
Echosign::Request
@@ -348,7 +388,7 @@
-
+
#get_mega_signs
Echosign::Client
@@ -356,17 +396,9 @@
-
-
-
-
-
@@ -374,8 +406,8 @@
@@ -557,6 +589,14 @@
+
+
+
+
+
#initialize
Echosign::Reminder
@@ -564,7 +604,7 @@
-
+
#initialize
Echosign::Agreement
@@ -572,7 +612,7 @@
-
+
#initialize
Echosign::MegaSign
@@ -580,7 +620,7 @@
-
+
#initialize
Echosign::Credentials
@@ -588,7 +628,7 @@
-
+
#initialize
Echosign::Fileinfo
@@ -596,7 +636,7 @@
-
+
#initialize
Echosign::Recipient
@@ -604,7 +644,7 @@
-
+
#initialize
Echosign::PhoneInfo
@@ -612,7 +652,7 @@
-
+
#initialize
Echosign::WidgetStatus
@@ -620,7 +660,7 @@
-
+
#initialize
Echosign::UrlFileInfo
@@ -628,7 +668,7 @@
-
+
#initialize
Echosign::CounterSignerInfo
@@ -636,7 +676,7 @@
-
+
#initialize
Echosign::WidgetVaultingInfo
@@ -644,7 +684,7 @@
-
+
#initialize
Echosign::RequestFormField
@@ -652,7 +692,7 @@
-
+
#initialize
Echosign::FormFieldLocation
@@ -660,7 +700,7 @@
-
+
#initialize
Echosign::WidgetCompletionInfo
@@ -668,7 +708,7 @@
-
+
#initialize
Echosign::WidgetPersonalization
@@ -676,7 +716,7 @@
-
+
#initialize
Echosign::WidgetSecurityOption
@@ -684,7 +724,7 @@
-
+
#initialize
Echosign::RecipientSecurityOption
@@ -692,7 +732,7 @@
-
+
#initialize
Echosign::WidgetSignerSecurityOption
@@ -700,7 +740,7 @@
-
+