challonge-node
v1.0.2
Published
A node.js library for [Challonge API](http://api.challonge.com/v1)
Downloads
11
Readme
challonge-node
A node.js library for Challonge API
Requirements
Tested with:
- Node 6.8.1
- npm 2.15.1
Installation
npm install --save challonge-node
Usage
See tests for full usage
Setup
var ChallongeAPI = require('challonge-node');
var challonge = ChallongeAPI.withAPIKey(<API_KEY>);
or
import ChallongeAPI from 'challonge-node';
const challonge = ChallongeAPI.withAPIKey(<API_KEY>);
Create tournament
challonge.tournaments.create(<NAME>, <URL>).then(function(tournament) {
console.log(tournament.id);
}
Testing
npm run test
License
challonge-node is available under the MIT license. See the LICENSE file for more info.