eto

easy-track-o-bot

easy-track-o-bot is a javascript wrapper developed as npm module for Track-o-bot APIs.

Showing:

Popularity

Downloads/wk

23

GitHub Stars

0

Maintenance

Last Commit

4yrs ago

Contributors

1

Package

Dependencies

2

Size (min+gzip)

192.3KB

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

easy-track-o-bot

easy-track-o-bot is a javascript wrapper developed as npm module for Track-o-bot APIs.

Badges

Coverage Status Build Status Known Vulnerabilities

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100