Skip to content

Commit 205c2d7

Browse files
committed
Adding codeDepot markers, DocuSign -> Docusign
1 parent 9a854ef commit 205c2d7

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

ds_config_example.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22
// ds_config.php
33
//
4-
// DocuSign configuration settings
4+
// Docusign configuration settings
55
$DS_CONFIG = [
66
'quickstart' => '{QUICKSTART_VALUE}',
77
'quickACG' => '{QUICK_ACG_VALUE}',
8-
'ds_client_id' => '{INTEGRATION_KEY_AUTH_CODE}', // The app's DocuSign integration key
9-
'ds_client_secret' => '{SECRET_KEY}', // The app's DocuSign integration key's secret
8+
'ds_client_id' => '{INTEGRATION_KEY_AUTH_CODE}', // The app's Docusign integration key
9+
'ds_client_secret' => '{SECRET_KEY}', // The app's Docusign integration key's secret
1010
'signer_email' => '{SIGNER_EMAIL}',
1111
'signer_name' => '{SIGNER_NAME}',
1212
'app_url' => 'http://localhost:8080/public', // The url of the application.
@@ -18,7 +18,7 @@
1818
'session_secret' => '{SESSION_SECRET}', // Secret for encrypting session cookie content
1919
'allow_silent_authentication' => true, // a user can be silently authenticated if they have an
2020
// active login session on another tab of the same browser
21-
'target_account_id' => false, // Set if you want a specific DocuSign AccountId, If false, the user's default account will be used.
21+
'target_account_id' => false, // Set if you want a specific Docusign AccountId, If false, the user's default account will be used.
2222
'demo_doc_path' => 'demo_documents',
2323
'doc_docx' => 'World_Wide_Corp_Battle_Plan_Trafalgar.docx',
2424
'offer_doc_docx' => 'Offer_Letter_Dynamic_Table.docx',
@@ -37,7 +37,7 @@
3737
];
3838

3939
$JWT_CONFIG = [
40-
'ds_client_id' => '{INTEGRATION_KEY_JWT}', // The app's DocuSign integration key
40+
'ds_client_id' => '{INTEGRATION_KEY_JWT}', // The app's Docusign integration key
4141
'authorization_server' => 'account-d.docusign.com',
4242
"ds_impersonated_user_id" => '{IMPERSONATED_USER_ID}', // the id of the user
4343
"private_key_file" => "./private.key", // path to private key file

src/Services/Examples/WebForms/CreateRemoteInstanceService.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ public static function createRemoteInstance(
4545
string $signerName,
4646
string $signerEmail
4747
): WebFormInstance {
48+
#ds-snippet-start:WebForms2Step4
4849
$formValues = new WebFormValues([
4950
['PhoneNumber' => '555-555-5555'],
5051
['Yes' => ['Yes']],
51-
['Company' => 'Tally'],
52+
['Company' => 'Tally'],
5253
['JobTitle' => 'Programmer Writer']
5354
]);
5455

@@ -66,8 +67,11 @@ public static function createRemoteInstance(
6667
])
6768
],
6869
]);
70+
#ds-snippet-end:WebForms2Step4
71+
#ds-snippet-start:WebForms2Step5
6972

7073
return $formInstanceApi->createInstance($accountId, $formId, $options);
74+
#ds-snippet-end:WebForms2Step5
7175
}
7276

7377
/**
@@ -76,6 +80,7 @@ public static function createRemoteInstance(
7680
* @param string $accountId
7781
* @return array
7882
*/
83+
#ds-snippet-start:WebForms2Step3
7984
public static function getTemplatesByName(
8085
TemplatesApi $templatesApi,
8186
string $templateName,
@@ -92,6 +97,7 @@ public static function getTemplatesByName(
9297
throw new RuntimeException('Error fetching templates: ' . $e->getMessage(), 0, $e);
9398
}
9499
}
100+
#ds-snippet-end:WebForms2Step3
95101

96102
/**
97103
* Get forms

0 commit comments

Comments
 (0)