1.2.0 • Published 7 years ago

bearychat v1.2.0

Weekly downloads
7
License
MIT
Repository
github
Last release
7 years ago

bearychat.js

BearyChat API client for Node and the Browser.

@BearyChat Build Status Development Status

中文文档

Install

$ npm i bearychat

or with yarn

$ yarn add bearychat

Usage

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.

Full API Documentation

Test

$ npm run test

Contributing

Contributing is welcome, the contribution guide can be found in CONTRIBUTING

Generating API Client

  1. npm run download-api-schema
  2. npm run build:src

LICENSE

MIT

1.2.0

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.1.0

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago