@easyly/sign-js

1.0.31 • Public • Published

"Easyly sign" API

Use Easyly sign as an ES module.

build status npm version

Installation

Use npm to install the module:

npm install @easyly/sign-js

Usage

ContractsJS

You can access all available function by importing and initializing ContractsJS class with your Api Key from your account

import ContractsJS from '@easyly/sign-js';

const apiKey = "XXXXXXXXXXXXXXXXXXXX";
const contracts = new ContractsJS(apiKey);

Get contracts example

import ContractsJS from '@easyly/sign-js';

const apiKey = "XXXXXXXXXXXXXXXXXXXX";
const contracts = new ContractsJS(apiKey);

const getContracts = async(e) => {
    let [status, resp] = await contracts.getAll();
    // status = Int: 200
    // resp = Object: [{...}]
}

useEffect((e)=>{
    getContracts()
},[])

Full documentation can be found on Easyly Sign

Minimum requirements

The minimum supported version of React is v16.8. If you use an older version, upgrade React to use this library. If you prefer not to upgrade your React version, we recommend using legacy.

Contributing

If you would like to contribute to React Easyly.js, please make sure to read our contributor guidelines.

Package Sidebar

Install

npm i @easyly/sign-js

Weekly Downloads

52

Version

1.0.31

License

MIT

Unpacked Size

13.1 kB

Total Files

9

Last publish

Collaborators

  • nivapo95
  • easyly