when i use the .getJSON() FUNCTION to get all channels my code was
var url = “https://api.twitch.tv/kraken/channel?client_id=XXXXX”;
$.getJSON(url,function(data1){
console.log(data1);
});
bet it doesn’t work how could i handle with .getJSON() function
Edited out your client ID.
The endpoint is gated by an OAuth token, which you’re not providing in your code. Check out the endpoint documentation and the authentication documentation.
system
Closed
3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.