This demo sample code shows how simple is to integrate digital signatures into your website or application using the Bulksign platform.
-
when clicking the "Send For Signing" button, a new Bulksign envelope will be created
-
the user gets redirected to Bulksign for signing.
-
when user is finishing the signing process, it gets redirected back to the initiating application
The integration code which enables the redirect after signing :
envelope.OverwriteSignSettings = new SignSettingsApiModel()
{
AutomaticFinishAfterSigning = true,
DocumentDownload = SignerDownloadDocumentActionTypeApi.RedirectToUrl,
DocumentDownloadRedirectUrl = "http://localhost/WebSignRedirectIntegration/Home/FinishedSigning/?envelopeId={{#id#}}&email={{#email#}}"
};
- create a Bulksign account. Testing with on-premise version works too, just make sure you set the Bulksign API endpoint
(BulkSignApi api = new BulkSignApi("http://localhost/bulksignapi/");
-
login, go to Settings\API Token.
-
copy the value of the "Default" token
-
edit BulksignIntegration.cs and replace the Token constants with your token value.
-
build and run the project