npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

e-sign-api

v1.3.7

Published

A simple to use controller for the E-Sign API

Downloads

3

Readme

This is the npm package for the E-Sign API

Created By Isaac Hughes

Github repo click here

Stable Version ~ 1.3.7

Table of Contents

Installing

Using npm:

$ npm install e-sign-api

To access the functionality, import the function in the following format

import { esign } from 'e-sign-api';

Usage

The function takes four parameters Firstly your api Key (make sure this is valid for the environment you are using) Then the required call route, these are listed further down Then the relavent data, if none is required, pass an empty object Finally a boolean value to select the environment, true is sandbox, false is live Make sure all testing is done in sandbox!


let data = {
    ...
}

esign('apikey', 'call', data, true)

If the route takes parameters, these should be passed as part of the data object If the call takes a json body, this too should be passed in the data object

let data = {
    parameter : {
        id : "exampleID",
        signerID: "exampleSignerID"
    },
    body : {
        id: "objectID"
    }
}

All the calls follow a logical naming convention If an undefined call is passed, you will be alerted in the console

All the calls are listed below Please view the swagger to see what data should be passed with each call and the correct parameter id's click here

Calls

Accounts

  • createAccount
  • retrieveAccount
  • updateAccount
  • deleteAccount
  • getAccountWithAllUsers
  • getAccountStats
  • getRecentEvents
  • getExtensionsList
  • enableExtension
  • disableExtension

Envelopes

  • createEnvelope
  • retrieveEnvelope
  • archiveEnvelope
  • restoreEnvelope
  • redirectToWebApp
  • getSignedEnvelopes
  • getCompletedEnvelopes
  • getPendingEnvelopes
  • getDeclinedEnvelopes
  • getInboxEnvelopes
  • getArchivedEnvelopes
  • getEnvelope
  • permanentlyDeleteEnvelope
  • getSignerEnvelope
  • getAuditTrail
  • getAttachments

OAuth

  • createOauthApp
  • getOauthApps
  • getOauthApp
  • deleteOauthApp
  • createAuthCode
  • retrieveAccessToken
  • revokeAccessToken
  • getTokenInfo

Payments

  • addPaymentDetails
  • deletePaymentDetails
  • setupDirectDebit
  • confirmDirectDebit
  • cancelDirectDebit
  • getPlans
  • changePlan
  • paymentCharge
  • getInvoices
  • getInvoice

Saml

  • ssoLogin
  • ssoCallback

Signers

  • createReminder
  • getReminder
  • destroyReminder
  • signDocument
  • getSignerEnvelopeFromSigners
  • updateSigner

Tags

  • createTag
  • getTags
  • updateTag
  • deleteTag
  • getResourcesByTagAndType

Templates

  • createTemplate
  • getTemplates
  • generateEnvelopeRequest
  • updateTemplate
  • retrieveTemplate
  • deleteTemplate

uploads

  • uploadFiles
  • archiveFiles
  • getFilesByType
  • getFileByID
  • uploadCSVFile

Users

  • userLogin
  • userLogout
  • createContact
  • getContact
  • updateContact
  • deleteContact
  • requestPasswordReset
  • resetPassword
  • redirectToPasswordReset
  • createSignature
  • updateSignature
  • getSignature
  • deleteSignature
  • inviteUser
  • retrieveUsers
  • getUserByID
  • updateUser
  • removeUser
  • resendToken
  • confirmUser
  • confirmInvite

Webhooks

  • createWebhook
  • getWebhooks
  • deleteWebhook

Example

import { esign } from 'e-sign-api';

let data = {
    parameters: {
        id : 'b791c2f7-8aab-4450-bfe3-d1af87ce465c'
    }
}

let response = await esign('demo12345678', 'retrieveAccount', data, true)

resonse data (collapsed objects)

{
    json : {
        account: {
            id: 'b791c2f7-8aab-4450-bfe3-d1af87ce456c',
            company_name: 'Demo Account',
            shared: false,
            parent_account_id: '77e41daa-6513-4f3e-b8d8-e7d5ce936492',
            users: [ [Object] ],
            subscription: {
            state: 'active',
            days_until_trial_expires: null,
            currency: [Object],
            credits: [Object],
            payment: [Object]
            },
            additional_info: { documents_sent_this_month: 0, enabled_extensions: [] },
            limits: { document_sends_per_month: 3000 }
        },
        links: [
            {
            method: 'get',
            rel: 'accounts.getAccountAllUsers',
            uri: '/accounts/includes/users'
            },
            { method: 'patch', rel: 'users.createUser', uri: '/users' }
        ]
    },
    status: 200,
    statusText: "OK",
    headers: {
        'content-type': 'application/json',
        'transfer-encoding': 'chunked',
        connection: 'close',
        status: '200 OK',
        'cache-control': 'max-age=0, private, must-revalidate, no-cache',
        vary: 'Origin',
        'strict-transport-security': 'max-age=63072000; includeSubDomains, max-age=31536000; includeSubdomains; preload',
        'referrer-policy': 'strict-origin-when-cross-origin, strict-origin',
        'x-permitted-cross-domain-policies': 'none',
        'x-xss-protection': '1; mode=block, 1; mode=block',
        'x-request-id': 'cb9567ff-bb96-4def-ba33-ada48',
        'x-download-options': 'noopen',
        etag: 'W/"b766bd2e02bac59bcd50eb8406"',
        'x-frame-options': 'SAMEORIGIN',
        'x-runtime': '0.039731',
        'x-content-type-options': 'nosniff, nosniff',
        date: 'Thu, 25 Nov 2021 15:22:22 GMT',
        'x-powered-by': 'Phusion Passenger 6.0.4',
        server: 'nginx + Phusion Passenger 6.0.4'
    }
}