Skip to content

Commit 1886c8d

Browse files
authored
Merge pull request #4 from drewwww/patch-1
update extension.js for aug. 8 twitch changes
2 parents 771a22d + a6be7cc commit 1886c8d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

extension.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,14 @@ function Followers(nodecg) {
1111
}
1212

1313
Followers.prototype._scheduleFollowers = function() {
14+
var options = {
15+
url: 'https://api.twitch.tv/kraken/channels/' + this.username + '/follows?limit=50',
16+
headers: {
17+
'Client-ID': this.nodecg.config.login.twitch.clientID
18+
}
19+
};
1420
this.nodecg.log.debug('Polling for TwitchTV Followers.');
15-
this.request('https://api.twitch.tv/kraken/channels/' + this.username + '/follows?limit=50',
21+
this.request(options,
1622
(err, response, body) => {
1723
if (err) {
1824
this.nodecg.log.error(err);

0 commit comments

Comments
 (0)