@@ -30,16 +30,19 @@ public static class EmbeddedSending
3030 /// <returns>URL to embed in your application</returns>
3131 public static string SendEnvelopeUsingEmbeddedSending ( string signerEmail , string signerName , string ccEmail , string ccName , string docDocx , string docPdf , string accessToken , string basePath , string accountId , string startingView , string returnUrl )
3232 {
33+ //ds-snippet-start:eSign10Step2
3334 var docuSignClient = new DocuSignClient ( basePath ) ;
3435 docuSignClient . Configuration . DefaultHeader . Add ( "Authorization" , "Bearer " + accessToken ) ;
3536 EnvelopesApi envelopesApi = new EnvelopesApi ( docuSignClient ) ;
3637
37- // Step 1 . Make the envelope with "created" (draft) status
38+ // Step 2 . Make the envelope with "created" (draft) status
3839 EnvelopeDefinition env = MakeEnvelope ( signerEmail , signerName , ccEmail , ccName , docDocx , docPdf , "created" ) ;
3940 EnvelopeSummary results = envelopesApi . CreateEnvelope ( accountId , env ) ;
4041 string envelopeId = results . EnvelopeId ;
42+ //ds-snippet-end:eSign10Step2
4143
42- // Step 2. create the sender view
44+ //ds-snippet-start:eSign10Step3
45+ // Step 3. create the sender view
4346 // Call the CreateSenderView API
4447 // Exceptions will be caught by the calling function
4548 ReturnUrlRequest viewRequest = new ReturnUrlRequest
@@ -55,10 +58,12 @@ public static string SendEnvelopeUsingEmbeddedSending(string signerEmail, string
5558 {
5659 redirectUrl = redirectUrl . Replace ( "send=1" , "send=0" ) ;
5760 }
61+ //ds-snippet-end:eSign10Step3
5862
5963 return redirectUrl ;
6064 }
6165
66+ //ds-snippet-start:eSign10Step2
6267 private static EnvelopeDefinition MakeEnvelope ( string signerEmail , string signerName , string ccEmail , string ccName , string docDocx , string docPdf , string envStatus )
6368 {
6469 // Data for this method
@@ -212,5 +217,6 @@ private static byte[] Document1(string signerEmail, string signerName, string cc
212217 " </body>\n " +
213218 " </html>" ) ;
214219 }
220+ //ds-snippet-end:eSign10Step2
215221 }
216222}
0 commit comments