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 = //...create the object passing username and token provided by track-o-bot...easyTrackOBotObj = '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
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