easy-track-o-bot

0.0.3 • Public • Published

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

Package Sidebar

Install

npm i easy-track-o-bot

Weekly Downloads

0

Version

0.0.3

License

ISC

Last publish

Collaborators

  • redddz