# Challonger, An API wrapper for challonge.com API

```js
const { Challonge, TourneyConfig } = require("challonge.js");

async function start() {
    const config = {
        responseType: TourneyConfig.ResponseType.JSON
    }
    const tourney = new Challonge({ apiKey: "your api key" }, config);
}
start();
```

or

```js
const { Challonge, TourneyConfig } = require("challonge.js");

async function start() {
    const config = {
        responseType: TourneyConfig.ResponseType.XML
    }
    const tourney = new Challonge({ username: "your username", password: "your password"}, config);
}
start();
```