We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi peps, first time posting (~^-^~) ... I’m just trying something simple with the twitch API (Get the most popular channels from Twitch) which the NPM module I'm using has a function listed in the doc. Anyone familiar with the TwitchAPI? super scrub here, just got inspired to monkey around after watching Shiffman's TwitterAPI tutorials.
var TwitchApi = require('twitch-api');
var twitch = new TwitchApi({
clientId: 'v4enppwav768h5ll59ykrqf6wuy85o',
clientSecret: 'secret',
// redirectUri: 'http://localhost.',
// scopes: [array of scopes you want access to]
});
twitch.getTopGames(25, gotData);
function gotData(data){
console.log(data);
}
This is what I have so far, and totally not sure if I'm doing it correctly... console returns NULL :-/ Thanks for anyone who has a few minutes to take a look at the module ^_^
Answers
Not familiar with the twitch API, but I just wanted to mention it is important to: