new Client(options)
- Source:
Constructor function for the Client base responsible for communicating with Challonge API
You should never need to call new Client(). Instead, call challonge.createClient() and it will create
a new instance and set defaults.
Example
const challonge = require('challonge');
const client = challonge.createClient({
apiKey: '***yourAPIKey***'
});
Parameters:
Name | Type | Description |
---|---|---|
options |
object | configuration options for this instance |