@r6bros/r6-sdk-js
v1.0.1
Published
R6 API client - Javascript SDK, © 2019-22 R6Bros
Downloads
4
Readme
R6 SDK - Javascript edition
The R6 SDK gives easy access to the R6 API by providing an abstraction layer and encapsulating the authentication modules.
Installation
Using yarn:
$ yarn add r6-sdk-js
Using npm:
$ npm --save i r6-sdk-js
Usage
Node.js:
import R6Api from 'r6-sdk-js'
const config = {
apiKey: {
key: 'your key',
secret: 'your secret'
},
host: 'api.r6bros.eu'
};
const api = new R6Api(config);
const response = await api.info();
Documentation
API blueprint is available in compiled html and apib format.
ESDoc can also be generated by running the appropriate script:
$ yarn
$ yarn doc:source
Authentication
Please see the authentication docs for details.