Skip to content

gxchain/baas-sdk-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published