A Javascript SDK for Inplayer's RESTful API

InPlayer's JS API client wrapper

!CI

SDK Documentation can be found:
- HTML
- React
- React-Native
Install the package from npm and import it in your project.
``bash`
npm install --save @inplayer-org/inplayer.js
Alternatively you can include the script like so:
``
``
``
InPlayer.Account.signIn({
email: 'test@test.com',
password: '12345678',
clientId: 'b0899d7f-66da-40fc-8eeb-36cad735589c',
referrer: 'http://localhost:3000/'
}).then(data => console.log(data));
``
InPlayer.Account.signIn({
clientId: 'b0899d7f-66da-40fc-8eeb-36cad735589c',
refreshToken: '528b1b80-ddd1hj-4abc-gha3j-111111',
referrer: 'http://localhost:3000/'
}).then(data => console.log(data));
```
InPlayer.Account.signIn({
clientId: 'b0899d7f-66da-40fc-8eeb-36cad735589c',
clientSecret: '528b1b80-ddd1hj-4abc-gha3j-111111',
referrer: 'http://localhost:3000/'
}).then(data => console.log(data));
We love community contributions, so here's a quick guide if you want to help out:
1. Fork the repository
2. Write your changes
3. Make sure the tests pass
4. Update the docs
5. Commit your changes
6. Send us a PR