BearyChat API client for Node and the Browser.
$ npm i bearychat
or with yarn
$ yarn add bearychat
Plain usage example:
const bearychat = require('bearychat');
bearychat.rtm.start({token: '<your token>'})
.then(resp => resp.json())
.then(data => {console.log(data)});
Use HTTPClient:
const HTTPClient = require('bearychat').HTTPClient;
const client = new HTTPClient('<your token>');
client.rtm.start()
.then(data => {console.log(data)});
Note that you DON'T need to parse response to JSON with HTTPClient, this is handled automatically.
$ npm run test
Contributing is welcome, the contribution guide can be found in CONTRIBUTING
- npm run download-api-schema
- npm run build:src
MIT