var twitchStreams = require('../');

twitchStreams.get('Monstercat', function(error, streams) {
    if (error) return console.log('Error caught:', error);
    console.log('Got stream data.');
    for (var stream of streams) {
        console.log(stream.quality + ' (' + stream.resolution + '): ' + stream.url);
    }
})
var twitchStreams = require('../')('<client-id here - can be obtained from your twitch.tv settings -> connections -> register developer app>');

twitchStreams.get('Monstercat')
    .then(function(streams) {
        console.log('Got stream data.');

        for (var stream of streams)
            console.log(stream.quality + ' (' + stream.resolution + '): ' + stream.url);
    })
    .catch(function(error) {
        if (error)
            return console.log('Error caught:', error);
    });
Update example to use promises & client id
Update example to use promises & client id
