@idfy/sdk
Node.js SDK for Idfy REST API
Last updated a year ago by idfy .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @idfy/sdk 
SYNC missed versions from official npm registry.

Idfy Node.js SDK

Build Status npm (scoped)

A Node.js SDK for simple integration with the Idfy REST API.

Installation

npm install @idfy/sdk --save 

Documentation

Sample Usage

All methods return a Promise that resolves with the response body returned from the API.

The example below shows how to get the details of a single document.

const { IdfyClient } = require('@idfy/sdk');

// Initialize client with your credentials and desired scopes
const client = new IdfyClient(
  'clientId',
  'clientSecret',
  ['document_read', 'document_write']
);

// Make a call to retrieve the document
client.signature.getDocument('documentId')
  .then((document) => {
    console.log(`Retrieved document: ${document.title}`);
  });

Typescript Usage

The Idfy SDK comes with built-in typings.

import { IdfyClient } from '@idfy/sdk';

const client: IdfyClient = new IdfyClient(/* ... /*);

Support

Current Tags

  • 1.0.0-beta.1                                ...           latest (a year ago)

6 Versions

  • 1.0.0-beta.1                                ...           a year ago
  • 1.0.0-beta.0                                ...           a year ago
  • 0.3.0                                ...           a year ago
  • 0.2.2                                ...           a year ago
  • 0.2.1                                ...           a year ago
  • 0.1.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 7
Last Month 7
Dependencies (1)
Dev Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |