eleweek / WatchPeopleCode

http://WatchPeopleCode.com
MIT License
198 stars 16 forks source link

Better JSON API #4

Closed paked closed 9 years ago

paked commented 9 years ago

Hi, I know the idea of this was being thrown around in the chat room earlier, I thought it would be good to document it. Currently, the /json endpoint only returns a list of URLs, this is very difficult to work with (hard to write anything around it without over-complication). To my knowledge extra information already exists within the database, a good start would be adding the streamers name and the stream title (and of course keeping the URL).

So just a TLDR:

And a mockup of the JSON response:

{
  "streams": [
       {"username": "bob", "title": "The Bob writes code show!", "url": "http://twitch.tv/bobwritescode"} 
  ]
}

ps: Really like what you guys have done :+1:

elimohl commented 9 years ago

streamers name

you mean reddit username?

paked commented 9 years ago

Sorry, corrected!

elimohl commented 9 years ago

I've also added upcoming (all) and completed (only youtube) streams.

paked commented 9 years ago

Thanks man! This is awesome!