easy-track-o-bot
v0.0.3
Published
Javascript wrapper of track-o-bot.
Downloads
17
Maintainers
Readme
easy-track-o-bot
easy-track-o-bot is a javascript wrapper developed as npm module for Track-o-bot APIs.
Badges
Usage
That's pretty easy...
//...require the module...
var EasyTrackOBot = require('easy-track-o-bot')
//...create the object passing username and token provided by track-o-bot...
easyTrackOBotObj = new EasyTrackOBot('your-username', 'your-token')
//...get your game data...
const fooGame = {
'result': {
'mode': 'ranked',
'hero': 'Shaman',
'hero_deck': 'Token',
'opponent': 'Hunter',
'opponent_deck': 'Midrange',
'coin': true,
'win': true,
'duration': 228,
'card_history': []
}
}
//...and upload it!
easyTrackOBotObj.uploadGame(fooGame, (result) => {
/* Your code here */
}
)
Please check here for more detailed information about all available methods.
Installation
npm install easy-track-o-bot
Running the tests
npm test
Author
- Riccardo Rossi
License
This project is licensed under the Apache 2.0 License - see the LICENSE.md file for details