bifcore-sdk-nodejs-bop
Version:
bifcore sdk nodejs
60 lines (36 loc) • 1.26 kB
Markdown
bifcore-sdk-nodejs
=======
Let developers can all use bifcore services more easily.
This is a [Node.js](https://nodejs.org/en/) module available through the
[](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
```
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)
```
To run the test suite, first install the dependencies, then run `npm test`:
```bash
$ npm install
$ npm test
```
* [Documentation](doc/BIFCore-SDK-Nodejs.md)
[](http://www.apache.org/licenses/LICENSE-2.0)
版权所有 2021 中国信息通信研究院工业互联网与物联网研究所