Skip to content

The Official SignNow Node.js Client Library for interacting with SignNow REST API. Sign documents, request e-signatures, and build role-based workflows with multiple signers using this client.

License

Notifications You must be signed in to change notification settings

signnow/SignNowNodeSDK

Repository files navigation

signNow API NODE.JS SDK

v3.0.0

Node.js Version

Requirements

  • Node.js 20 or higher

Installation

Get SDK code

git clone git@github.com:signnow/SignNowNodeSDK.git

Install dependencies

npm install

Configuration

Copy .env.example to .env and fill your credentials in the required values

cp .env.example .env

Run tests

To run tests you need to have a valid .env.test file with credentials for testing. If you don't have it, you can create it by copying the .env.test.dist file and renaming it to .env.test. However, the file will be created automatically if you just run test execution with the following commands:

npm run test

Usage

To start using the SDK, you need to create a new instance of the SDK API client and authenticate it using the credentials from the .env file. Example of sending a request to get a document by id:

import { Sdk, DocumentGet } from '@signnow/api-sdk';
import type { Document } from '@signnow/api-sdk';

const sdk = await new Sdk().authenticate();
const client = sdk.getClient();

const documentGet = new DocumentGet('29db9956636d481f9c532ef64951ae78209f7483');
const responseDocumentGet = await client.send<Document>(documentGet);
console.log('response document get', responseDocumentGet);

Examples

You can find more examples of API usage in the examples directory.

About

The Official SignNow Node.js Client Library for interacting with SignNow REST API. Sign documents, request e-signatures, and build role-based workflows with multiple signers using this client.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 8

Languages