InPlayer's JS API client wrapper
SDK Documentation can be found:
Install the package from npm and import it in your project.
npm install --save @inplayer-org/inplayer.js
Alternatively you can include the script like so:
<script src="https://unpkg.com/@inplayer-org/inplayer.js@v2/dist/inplayer.umd.js"></script>
<script src="https://unpkg.com/@inplayer-org/inplayer.js@v3/dist/inplayer.min.js"></script>
InPlayer.Account.signIn({
email: '[email protected]',
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:
- Fork the repository
- Write your changes
- Make sure the tests pass
- Update the docs
- Commit your changes
- Send us a PR