JavaScript API example

Hi, there any work examples on JS?
I need get all live stream

Yes i know about:
> curl -H ‘Accept: application/vnd.twitchtv.v5+json’ \

-H 'Client-ID: uo6dggojyb8d6soh92zknwmi5ej1q2' \
-X GET https://api.twitch.tv/kraken/streams/

But i dont know how use it in JS.

In V3 i use:

$.ajax({
type: “GET”,
dataType: “jsonp”,
url: “https://api.twitch.tv/kraken/streams?limit=48”,

success: function(result) {

Has a fetch example

2 Likes

Thanks!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.