The Bulksign TypeScript SDK
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Bulksign Entities
BulksignApi.ts
BulksignJavascriptSdk.js
BulksignJavascriptSdk.min.js
BulksignTypeScriptSDK.sln
BulksignTypescriptSDK.csproj
LICENSE
README.md
Web.config
bundleconfig.json
test.html
testfile.js
tests.js

README.md

Javascript / Typescript SDK for Bulksign platform

General informations

This is the source code of the Bulksign Javascript / Typescript SDK.

Note about Cross-Domain requests and Same-Origin Policy

Before testing/deploying a Bulksign integration written in Javascript/Typescript, please get in touch with us to enable cross domain requests for the domain used in your integration.

Getting started (Javascript)

The SDK depends on jQuery, so first please make sure you are referincing jquery in your project. After this, referece the Bulksign SDK file directly from us :

   <script src="https://bulksign.com/scripts/3rdparty/BulksignJavascriptSdk.min.js"></script>

Getting started (Typescript)

With Typescript the easiest way to get started is to clone the repository , reference the BulksignApi.ts file (and dependencies) and start writing some strong typed code :)

Send a document for signing using the API

	var bundle = new Bulksign.BulksignBundle();
	bundle.Name = "test";   //the bundle name

	var doc = new Bulksign.BulksignDocument();
	doc.ContentAsBase64String = base64_file;  //this is the content of the pdf file to be signed, encoded as a base64 string
	doc.FileName = "test.pdf";
	doc.Index = 1;

	bundle.Documents = [doc];

	var recipient = new Bulksign.BulksignRecipient();
	recipient.Name = "Test User";   // the name of the recipient 
	recipient.Email = ""; //the email address of the recipient who will sign the document
	recipient.Index = 1;
	recipient.RecipientType = Bulksign.BulksignApiRecipientType.Signer;

	bundle.Recipients = [recipient];

	var api = new Bulksign.BulksignApi();

	var token = { };  //your authorization token to call the api

	api.SendBundle(token, bundle);