@easyly/sign-js
v1.0.31
Published
JS package for Easyly sign by Easyly
Downloads
161
Readme
"Easyly sign" API
Use Easyly sign as an ES module.
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.