twitch.tv
node.js lib for Twitch.tv's REST API
npm install twitch.tv
Example
var twitch =
API
twitch(apiMethod[, options], callback)
Default options:
ua: "node.js twitch.tv by mediremi" apiVersion: "3" clientID: ""
options.baseUrl
->Twitch.tv
API base URLoptions.ua
-> User agent sent toTwitch.tv
options.apiVersion
-> API version usedoptions.clientID
-> Client ID provided byTwitch.tv
. Used for rate-limitingoptions.auth
-> OAuth token provided byTwitch.tv
. Used for privileged requests (doc here)
callback
is called with two parameters: err
and response
.
Examples:
// https://dev.twitch.tv/docs/v5/reference/users/#get-user