@@ -23,7 +23,6 @@ class SMSDeliveryService
2323 * @param $demoDocsPath
2424 * @return array ['redirect_url']
2525 */
26- # ***DS.snippet.0.start
2726 public static function smsDelivery (array $ args , $ clientService , $ demoDocsPath , $ docDocx , $ docPDF ): array
2827 {
2928 # Step 2. Create the envelope definition
@@ -35,7 +34,9 @@ public static function smsDelivery(array $args, $clientService, $demoDocsPath, $
3534 # Exceptions will be caught by the calling function
3635 try {
3736 # Step 3. Create and send the envelope
37+ #ds-snippet-start:eSign37Step3
3838 $ envelopeResponse = $ envelope_api ->createEnvelope ($ args ['account_id ' ], $ envelope_definition );
39+ #ds-snippet-end:eSign37Step3
3940 } catch (ApiException $ e ) {
4041 $ clientService ->showErrorTemplate ($ e );
4142 exit ;
@@ -59,6 +60,7 @@ public static function smsDelivery(array $args, $clientService, $demoDocsPath, $
5960 * @param $demoDocsPath
6061 * @return EnvelopeDefinition -- returns an envelope definition
6162 */
63+ #ds-snippet-start:eSign37Step2
6264 public static function make_envelope (array $ args , $ clientService , $ demoDocsPath , $ docDocx , $ docPDF ): EnvelopeDefinition
6365 {
6466 $ envelope_definition = CreateAnEnvelopeFunctionService::make_envelope ($ args , $ clientService , $ demoDocsPath , $ docDocx , $ docPDF );
@@ -124,6 +126,6 @@ public static function addSignersToTheDelivery($signer1, $CC, $envelope_definiti
124126 $ envelope_definition ->setStatus ($ args ["status " ]);
125127
126128 return $ envelope_definition ;
129+ #ds-snippet-end:eSign37Step2
127130 }
128- # ***DS.snippet.0.end
129131}
0 commit comments