justintv / Twitch-API

A home for details about our API
www.twitch.tv
1.72k stars 381 forks source link

live user #598

Closed xavierartot closed 7 years ago

xavierartot commented 7 years ago

Hi, I get my stream request and I add my channel in the variable: q=channel. But I don't see any information to know if the streamming is on live or wathever information?

my parameters are in a object:

  var FccParam = {
    xav : {
      q:'FreeCodeCamp',
      limit: 30
    }
  };

my request jsonp:

  $.ajax({
    //url: 'https://api.twitch.tv/kraken/streams',
    url: 'https://api.twitch.tv/kraken/streams',
    type: 'POST',
    dataType: 'jsonp',
    data: $.param(FccParam ),
    complete: function (jqXHR, textStatus) {
      console.log(textStatus);
    },
    success: function (data, textStatus, jqXHR) {
      console.log(data );
  });

Thanks