This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Read a file from disk to use as a document | |
byte[] fileBytes = File.ReadAllBytes("[PATH/TO/DOCUMENT/TEST.PDF]"); | |
EnvelopeDefinition envDef = new EnvelopeDefinition(); | |
envDef.EmailSubject = "[DocuSign C# SDK] - Please sign this doc"; | |
// Add a document to the envelope | |
Document doc = new Document(); | |
doc.DocumentBase64 = System.Convert.ToBase64String(fileBytes); | |
doc.Name = "TestFile.pdf"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// instantiate a RecipientViewRequest object | |
$recipient_view_request = new \DocuSign\eSign\Model\RecipientViewRequest(); | |
// set where the recipient is re-directed once they are done signing | |
$recipient_view_request->setReturnUrl("https://www.docusign.com/develcenter"); | |
// configure the embedded signer | |
$recipient_view_request->setUserName($recipientName); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// set recipient information | |
$recipientName = "[RECIPIENT_NAME]"; | |
$recipientEmail = "[RECIPIENT_EMAIL]"; | |
// configure the document we want signed | |
$documentFileName = "[PATH/TO/DOCUMENT.PDF]"; | |
$documentName = "TestFile.pdf"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once('./docusign-php-client/autoload.php'); | |
// DocuSign account credentials & Integrator Key | |
$username = "[USERNAME]"; | |
$password = "[PASSWORD]"; | |
$integrator_key = "[INTEGRATOR_KEY]"; | |
// DocuSign environment we are using |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RecipientViewRequest viewOptions = new RecipientViewRequest() | |
{ | |
ReturnUrl = "https://www.docusign.com/devcenter", | |
ClientUserId = "1234", // must match clientUserId set in step #2! | |
AuthenticationMethod = "email", | |
UserName = "[SIGNER_NAME]", | |
Email = "[SIGNER_EMAIL]" | |
}; | |
// create the recipient view (aka signing URL) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// specify the document we want signed | |
string SignTest1File = @"[PATH/TO/DOCUMENT/TEST.PDF]"; | |
// read a file from disk to use as a document. | |
byte[] fileBytes = File.ReadAllBytes(SignTest1File); | |
EnvelopeDefinition envDef = new EnvelopeDefinition(); | |
envDef.EmailSubject = "[DocuSign C# SDK] - Please sign this doc"; | |
// Add a document to the envelope |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Download API Client and add to your project: | |
// https://github.com/docusign/docusign-csharp-client | |
using DocuSign.eSign.Api; | |
using DocuSign.eSign.Model; | |
using DocuSign.eSign.Client; | |
// Enter your credentials | |
string Username = "[EMAIL]"; | |
string Password = "[PASSWORD]"; | |
string IntegratorKey = "[INTEGRATOR_KEY]"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// use the |accountId| we retrieved through the Login API | |
String accountId = loginAccounts.get(0).getAccountId(); | |
// instantiate a new EnvelopesApi object | |
EnvelopesApi envelopesApi = new EnvelopesApi(); | |
// set the url where you want the recipient to go once they are done signing | |
RecipientViewRequest returnUrl = new RecipientViewRequest(); | |
returnUrl.setReturnUrl("https://www.docusign.com/devcenter"); | |
returnUrl.setAuthenticationMethod("email"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// specify a document we want signed | |
String SignTest1File = "[PATH/TO/DOCUMENT/TEST.PDF]"; | |
// create a byte array that will hold our document bytes | |
byte[] fileBytes = null; | |
try | |
{ | |
String currentDir = System.getProperty("user.dir"); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Download API Client and add to your project: | |
// https://github.com/docusign/docuSign-java-client | |
import com.docusign.esign.api.*; | |
import com.docusign.esign.client.*; | |
import com.docusign.esign.model.*; | |
// Enter your DocuSign credentials | |
String UserName = "[EMAIL]"; | |
String Password = "[PASSWORD]"; | |
String IntegratorKey = "[INTEGRATOR_KEY]"; |