CudaSign
CudaSign REST Service Wrapper
Updates
12/3/2015 - The eval server has been changed to api-eval.cudasign.com. You will need to create a new account for api-eval.cudasign.com. https://eval.cudasign.com.
About CudaSign
CudaSign by Barracuda is an eSigning platform that offers a cloud version, a physical appliance and also a virtual appliance. Backed by Barracuda’s industry-leading security infrastructure, CudaSign is fully compliant with eSigning laws and encrypts all data in transit. Users can share, manage and access their documents with confidence. It’s never been easier to get legally binding signatures from customers, partners, and employees - in seconds using any device.
API Contact Information
If you have questions about the CudaSign API, please visit https://techlib.barracuda.com/CudaSign/RestEndpointsAPI or email api@cudasign.com.
See additional contact information at the bottom.
Installation
$ npm install cudasign
Examples
To run the examples you will need an API key. You can get one here https://cudasign.com/l/api/request_information. For a full list of accepted parameters, refer to the CudaSign REST Endpoints API guide: https://techlib.barracuda.com/CudaSign/RestEndpointsAPI.
Every resource is accessed via your CudaSign instance:
var cudasign = credentials: "ENCODED_CLIENT_CREDENTIALS" production: false //(false uses eval server);
Every resource returns two parameters. The first param contains any errors and the second contains the results.
User
Create a User
cudasignuser;
Retrieve User Information
cudasignuser;
OAuth 2.0
Request Access Token
cudasignoauth2;
Verify an Access Token
cudasignoauth2;
Document
Retrieve a List of the User’s Documents
cudasigndocument;
Retrieve a Document Resource
cudasigndocument;
Download a Collapsed Document
cudasigndocument;
Upload Document
cudasigndocument;
Upload File & Extract Fields
cudasigndocument;
Update Document (add fields)
var fieldsObj = "texts": "size":8 "x":61 "y":72 "page_number":0 "font":"Arial" "data":"sample text" "line_height":9075 cudasigndocument;
Create Invite to Sign a Document
cudasigndocument;
Cancel an Invite to a Document
cudasigndocument;
Create a One-time Use Download URL
cudasigndocument;
Merges Existing Documents
cudasigndocument;
Get Document History
cudasigndocumenthistory token: "your login token" id: "document id" { if!err console; else console; };
Enumerations
Add Enumeration Field to a Document
cudasignenumerations;
Add Enumeration Options to the Field
cudasignenumerations;
Template
Create a Template
cudasigntemplate;
Duplicate a Template
cudasigntemplate;
Folder
Returns a list of folders
cudasignfolder;
Returns a list of documents inside a folder
Filters | Values |
---|---|
signing-status |
waiting-for-me , waiting-for-others , signed , pending |
document-updated |
new Date() |
document-created |
new Date() |
Sort | Values |
---|---|
document-name |
asc /desc |
updated |
asc /desc |
created |
asc /desc |
cudasignfolder;
Webhook
Returns a list of Webhooks
cudasignwebhook;
Create a Webhook
Events | Description |
---|---|
document.create |
Webhook is triggered when a document is uploaded to users account in CudaSign |
document.update |
Webhook is triggered when a document is updated (fields added, text added, signature added, etc.) |
document.delete |
Webhook is triggered when a document is deleted from |
invite.create |
Webhook is triggered when an invitation to a CudaSign document is created. |
invite.update |
Webhook is triggered when an invite to CudaSign document is updated. Ex. A signer has signed the document. |
cudasignwebhook;
Unit Tests
To run the unit test you will need to install "Mocha" and "Chai". You also need to create a "test.settings.js" in the root of the CudaSign module. The file will need to contain the following:
{ "use strict"; /** * Test Settings */ exportssettings = credentials: "[ENCODED CLIENT CREDENTIALS]" token: "[ACCESS TOKEN]" username: "[CUDASIGN USERNAME]" password: "[CUDASIGN PASSWORD]" documentid: "[EXISTING DOCUMENT ID]" templateid: "[EXISTING TEMPLATE ID]" folderid: "[EXISTING FOLDER ID]" email: "[FROM EMAIL FOR INVITE]" testemail: "[TO EMAIL FOR INVITE]" ; };
Additional Contact Information
SUPPORT
To contact CudaSign support, please email support@cudasign.com.
SALES
For pricing information, please call (800) 831-2050 or email sales@cudasign.com.