Retrieving data with Twitch with JS [closed]

1

Could someone explain to me how I got data from this API: " link . For example, I would like to get this user: " link " your name, avatar etc. I searched the internet for some explanation but found none that explained what I wanted.

    
asked by anonymous 19.05.2016 / 02:44

1 answer

1

A simple way is to make an AJAX request (in the example I am using jquery), an example follows that returns a jsonp:

$.ajax({
     type : "GET",
     dataType : "jsonp",
     url : "https://api.twitch.tv/kraken/channels/beyondthesummit",
     success: function(data){
       console.log(data);

    }
});
    
19.05.2016 / 06:04