Twitch Viewer used to work, did something change?

@alphaoliveira Yes it did work worked after i added the client Id…As instructed they said to put the client Id in your ajax request as a header option but that didn’t work after I tried it… so I put the client id in the urls I used to make the requests like shown below and it worked…if I removed the header option in the request, it will still work but I left it just incase.

$streamApiUrl = "https://api.twitch.tv/kraken/streams/" + streamers[i] + "?client_id=YourId&callback=?"

    $.ajax({
      type: "GET",
      dataType: "jsonp",
      url: $streamApiUrl,
      headers: {
       'Client-ID': 'yourId'
      }
4 Likes