UNPKG

bifcore-sdk-nodejs-bop

Version:
60 lines (36 loc) 1.26 kB
bifcore-sdk-nodejs ======= Let developers can all use bifcore services more easily. ## Installation This is a [Node.js](https://nodejs.org/en/) module available through the [npm registry](https://www.npmjs.com/). Before installing, [download and install Node.js](https://nodejs.org/en/download/). Node.js 6.0.0 or higher is required. Installation is done using the [`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): ```bash $ npm install bifcore-sdk-nodejs --save ``` ## Quick Start Create bifcore-sdk-nodejs instance: ```js 'use strict' const BIFCoreSDK = require('bifcore-sdk-nodejs') const options = { host: 'http://domestic-testnet.bitfactory.cn', apiKey: 'W98MKG4ZQX6R6MKP68BAUFIVWY12Q7NA', apiSecret:'+Qc1SaVhtFcKw8P/1Sd8wI5AUr3m3zBJATtlnkg2hc4=' } const sdk = new BIFCoreSDK(options) ``` ## Tests To run the test suite, first install the dependencies, then run `npm test`: ```bash $ npm install $ npm test ``` ## Docs * [Documentation](doc/BIFCore-SDK-Nodejs.md) ## License [Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0) 版权所有 2021 中国信息通信研究院工业互联网与物联网研究所