@@ -29,7 +29,6 @@ def create_web_form_template
2929
3030 def list_web_forms
3131 configuration = DocuSign_WebForms ::Configuration . new
32- configuration . host = Rails . configuration . webforms_host
3332
3433 api_client = DocuSign_WebForms ::ApiClient . new ( configuration )
3534 api_client . set_default_header ( 'Authorization' , "Bearer #{ args [ :access_token ] } " )
@@ -44,7 +43,6 @@ def list_web_forms
4443
4544 def create_web_form_instance ( form_id )
4645 configuration = DocuSign_WebForms ::Configuration . new
47- configuration . host = Rails . configuration . webforms_host
4846
4947 api_client = DocuSign_WebForms ::ApiClient . new ( configuration )
5048 api_client . set_default_header ( 'Authorization' , "Bearer #{ args [ :access_token ] } " )
@@ -58,10 +56,10 @@ def create_web_form_instance(form_id)
5856 'JobTitle' => 'Programmer Writer'
5957 }
6058 web_form_req_object = DocuSign_WebForms ::CreateInstanceRequestBody . new ( {
61- 'clientUserId' => args [ :client_user_id ] ,
62- 'formValues' => web_form_values ,
63- 'expirationOffset' => '3600'
64- } )
59+ 'clientUserId' => args [ :client_user_id ] ,
60+ 'formValues' => web_form_values ,
61+ 'expirationOffset' => '3600'
62+ } )
6563 webforms_api . create_instance ( args [ :account_id ] , form_id , web_form_req_object )
6664 end
6765
@@ -74,18 +72,18 @@ def make_web_forms_template
7472
7573 # Create the document model
7674 document = DocuSign_eSign ::Document . new ( {
77- # Create the DocuSign document object
78- 'documentBase64' => base64_file_content ,
79- 'name' => 'World_Wide_Web_Form' , # Can be different from actual file name
80- 'fileExtension' => 'pdf' , # Many different document types are accepted
81- 'documentId' => '1' # A label used to reference the doc
82- } )
75+ # Create the DocuSign document object
76+ 'documentBase64' => base64_file_content ,
77+ 'name' => 'World_Wide_Web_Form' , # Can be different from actual file name
78+ 'fileExtension' => 'pdf' , # Many different document types are accepted
79+ 'documentId' => '1' # A label used to reference the doc
80+ } )
8381
8482 # Create the signer recipient model
8583 # Since these are role definitions, no name/email:
8684 signer = DocuSign_eSign ::Signer . new ( {
87- 'roleName' => 'signer' , 'recipientId' => '1' , 'routingOrder' => '1'
88- } )
85+ 'roleName' => 'signer' , 'recipientId' => '1' , 'routingOrder' => '1'
86+ } )
8987 # Create fields using absolute positioning
9088 # Create a sign_here tab (field on the document)
9189 sign_here = DocuSign_eSign ::SignHere . new (
0 commit comments