baas-sdk-node
v1.0.0
Published
GXChain BaaS storage api implemented in js
Downloads
11
Maintainers
Readme
Install
npm install baas-sdk-node --save
Usage
import {BaaSClient} from 'baas-sdk'
let client = new BaaSClient('5Ka9YjFQtfUUX2Ddnqka...', '1.2.19');
console.time('data-exchange');
client.store("123").then(resp=>{
console.end('data-exchange');
console.log(resp);
}).catch(ex => {
console.error('error when create data exchange request:', ex);
});
console.time('fetch-content');
client.data('').then(resp=>{
console.end('fetch-content');
console.log(resp);
}).catch(ex => {
console.error('error when fetching content:', ex);
});
Dev Documents
https://doc.gxb.io/gxchain/api/baas-api.html