Skip to content

Script dont working with actual API #2

@fabki

Description

@fabki

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.");
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions