@@ -20,7 +20,7 @@ class SendBinaryDocsService
2020 * @return array ['redirect_url']
2121 * @throws GuzzleException
2222 */
23- #ds-snippet-start:eSign12Step3
23+ #ds-snippet-start:eSign10Step3
2424 public static function sendBinaryDocs ($ args , $ demoDocsPath , $ clientService ): array
2525 {
2626 $ envelope_args = $ args ["envelope_args " ];
@@ -73,11 +73,11 @@ public static function sendBinaryDocs($args, $demoDocsPath, $clientService): arr
7373 }
7474 # Add closing $boundary
7575 $ req_body .= $ CRLF . $ hyphens . $ boundary . $ hyphens . $ CRLF ;
76- #ds-snippet-end:eSign12Step3
76+ #ds-snippet-end:eSign10Step3
7777
7878 # Step 2. call Envelopes::create API method
7979 # using Guzzle https://guzzle.readthedocs.io/en/latest/index.html
80- #ds-snippet-start:eSign12Step4
80+ #ds-snippet-start:eSign10Step4
8181 $ client = new Client ();
8282 $ uri = "{$ args ['base_path ' ]}/v2.1/accounts/ {$ args ['account_id ' ]}/envelopes " ;
8383 $ responseInterface = $ client ->request ('POST ' , $ uri , [
@@ -91,7 +91,7 @@ public static function sendBinaryDocs($args, $demoDocsPath, $clientService): arr
9191 $ responseInterfaceToJson = json_decode ((string )$ responseInterface ->getBody ());
9292
9393 return ['envelope_id ' => $ responseInterfaceToJson ->envelopeId ];
94- #ds-snippet-end:eSign12Step4
94+ #ds-snippet-end:eSign10Step4
9595 }
9696
9797 /**
@@ -105,7 +105,7 @@ public static function sendBinaryDocs($args, $demoDocsPath, $clientService): arr
105105 * @param $args array
106106 * @return array {Envelope} An envelope definition
107107 */
108- #ds-snippet-start:eSign12Step3
108+ #ds-snippet-start:eSign10Step3
109109 public static function make_envelope_JSON (array $ args ): array
110110 {
111111 # create the envelope definition
@@ -165,5 +165,5 @@ public static function make_envelope_JSON(array $args): array
165165
166166 return $ env_json ;
167167 }
168- #ds-snippet-end:eSign12Step3
168+ #ds-snippet-end:eSign10Step3
169169}
0 commit comments