Couple of Issues with users/follows API

49 views
Skip to first unread message

Mike Chambers

unread,
Jul 3, 2013, 3:12:18 AM7/3/13
to justintv-ap...@googlegroups.com
I have a Chrome extension which lists which of a user's favorite channels are online. It works well, but I am seeing two issues with the:


API

First, when I call the API, I am getting 100 channels at a time, I am seeing response times on average of about 3 seconds (this seems slow). For comparison, the streams API is returning in about 300 to 500 ms.

This is a particular issue since you may have to make multiple calls to the API to retrieve all of the channels that a user is following.

Second, the API will randomly return a completely empty response.

Here is an example call which returned an empty response:

  1. Request URL:
  2. Request Headersview source
    1. Accept:
      application/json, text/javascript, */*; q=0.01
    2. User-Agent:
      Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36
  3. Query String Parametersview sourceview URL encoded
    1. limit:
      100
    2. offset:
      100
    3. _:
      1372834621526

Again, the call normally works, but I randomly get an empty response.

I have code to work around this, but wanted to post here in case the API team can use it to track down any issues.

mike

Mike Ossareh

unread,
Jul 3, 2013, 4:00:59 PM7/3/13
to twitc...@googlegroups.com
Hi Mike, 

I'm moving this over to the twitch API list, please use that for twitch related queries.

Regarding the API speed, we're aware and have work in the pipeline to fix this up. WRT the randomly empty response - we're going to need some more data from you - for example I do not see the response code for the query, not do I have a sense of when it happened, or what the _actual_ payload was (i.e. empty could mean "[]" or no response body).




--
You received this message because you are subscribed to the Google Groups "Justin.tv API Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to justintv-api-deve...@googlegroups.com.
To post to this group, send email to justintv-ap...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/justintv-api-developers/CAL0q0T6uRVqzW-b69XaSO%2BqXJYUshLV4v6fM3RfrM8wv4J3KYg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages