{"action":"created","issue":{"url":"https://api.github.com/repos/ILiedAboutCake/OverRustle/issues/25","labels_url":"https://api.github.com/repos/ILiedAboutCake/OverRustle/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/ILiedAboutCake/OverRustle/issues/25/comments","events_url":"https://api.github.com/repos/ILiedAboutCake/OverRustle/issues/25/events","html_url":"https://github.com/ILiedAboutCake/OverRustle/issues/25","id":49190234,"number":25,"title":"Show Stream preview thumbnails in /strims","user":{"login":"hayksaakian","id":1884787,"avatar_url":"https://avatars.githubusercontent.com/u/1884787?v=3","gravatar_id":"","url":"https://api.github.com/users/hayksaakian","html_url":"https://github.com/hayksaakian","followers_url":"https://api.github.com/users/hayksaakian/followers","following_url":"https://api.github.com/users/hayksaakian/following{/other_user}","gists_url":"https://api.github.com/users/hayksaakian/gists{/gist_id}","starred_url":"https://api.github.com/users/hayksaakian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hayksaakian/subscriptions","organizations_url":"https://api.github.com/users/hayksaakian/orgs","repos_url":"https://api.github.com/users/hayksaakian/repos","events_url":"https://api.github.com/users/hayksaakian/events{/privacy}","received_events_url":"https://api.github.com/users/hayksaakian/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-11-18T07:28:21Z","updated_at":"2015-01-25T22:12:39Z","closed_at":"2015-01-10T00:26:46Z","body":"Notes from various apis:\r\n\r\nall apis assumed stream is live\r\n\r\n## twitch https://github.com/justintv/Twitch-API/blob/master/v3_resources/streams.md#get-streamschannel\r\n\r\nendpoint:\r\n\r\n    api.twitch.tv/kraken/streams/CHANNEL_NAME\r\n\r\njson:\r\n\r\n    image_url = json.stream.preview.large\r\n\r\n## hitbox http://developers.hitbox.tv/media\r\n\r\nendpoint:\r\n\r\n    api.hitbox.tv/media/stream/CHANNEL_NAME\r\n\r\njson:\r\n\r\n    image_url = \"edge.sf.hitbox.tv\" + json.livestream[0].media_thumbnail_large\r\n\r\nhttp://static/img/media/live/newlegacyinc_large_000.jpg\r\n\r\n\r\n## ustream http://ustream.github.io/api-docs/channel.html\r\n\r\nendpoint:\r\n\r\n    https://api.ustream.tv/channels/CHANNEL_IDjson\r\n\r\njson\r\n\r\n    image_url = json.channel.thumbnail.live\r\n\r\n\r\nthose seem like the most popular platforms, so let's start with them.\r\n\r\nNotes:\r\n- castamp is a massive hack, and we won't be getting thumbnails\r\n- mlg has images, but not real thumbnails, but might not be worth the effort (api is undocumented)\r\nsee: http://streamapi.majorleaguegaming.com/service/streams/all\r\nand: http://www.majorleaguegaming.com/api/channels/all.js?fields=id,name,slug,subtitle,stream_name,type,is_hidden,image_1_1,image_16_9_small,image_16_9_medium,image_background,url,embed_code,description\r\n- youtube has thumbnails, not sure if live has an api or thumbnails\r\n- azubu apparently does http://content.azubu.tv/api/\r\n"},"comment":{"url":"https://api.github.com/repos/ILiedAboutCake/OverRustle/issues/comments/71396458","html_url":"https://github.com/ILiedAboutCake/OverRustle/issues/25#issuecomment-71396458","issue_url":"https://api.github.com/repos/ILiedAboutCake/OverRustle/issues/25","id":71396458,"user":{"login":"hayksaakian","id":1884787,"avatar_url":"https://avatars.githubusercontent.com/u/1884787?v=3","gravatar_id":"","url":"https://api.github.com/users/hayksaakian","html_url":"https://github.com/hayksaakian","followers_url":"https://api.github.com/users/hayksaakian/followers","following_url":"https://api.github.com/users/hayksaakian/following{/other_user}","gists_url":"https://api.github.com/users/hayksaakian/gists{/gist_id}","starred_url":"https://api.github.com/users/hayksaakian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hayksaakian/subscriptions","organizations_url":"https://api.github.com/users/hayksaakian/orgs","repos_url":"https://api.github.com/users/hayksaakian/repos","events_url":"https://api.github.com/users/hayksaakian/events{/privacy}","received_events_url":"https://api.github.com/users/hayksaakian/received_events","type":"User","site_admin":false},"created_at":"2015-01-25T22:12:39Z","updated_at":"2015-01-25T22:12:39Z","body":"http://streamapi.majorleaguegaming.com/service/streams/status/$STREAM_NAME"}}