-
Notifications
You must be signed in to change notification settings - Fork 14
Description
Is there a possibility to change the script to work with the actual API?
https://blog.twitch.tv/client-id-required-for-kraken-api-calls-afbb8e95f843#.mb57f5w8c
So simply adding " headers: {"Client-ID": "yourclientidhere"}, " to the request don't work.
// Ask twitch for the status of all channels at once
$.ajax({
headers: {"Client-ID": "yourclientidhere"},
url: "https://api.twitch.tv/kraken/streams",
data: {"channel": Object.keys(channels).join(","), "limit": Object.keys(channels).length},
cache: false,
dataType: "jsonp"
}).done(function (data) {
// We can only handle 100 online channels at a time :(
if (data.streams.length < data._total) {
console.warn("refreshTwitchChannelStatuses couldn't load all online channels! Please reduce the number of channels you are trying to check.");
}