{"action":"created","issue":{"url":"https://api.github.com/repos/streamlink/streamlink/issues/350","repository_url":"https://api.github.com/repos/streamlink/streamlink","labels_url":"https://api.github.com/repos/streamlink/streamlink/issues/350/labels{/name}","comments_url":"https://api.github.com/repos/streamlink/streamlink/issues/350/comments","events_url":"https://api.github.com/repos/streamlink/streamlink/issues/350/events","html_url":"https://github.com/streamlink/streamlink/pull/350","id":198458562,"number":350,"title":"Upgrade Twitch plugin to use API v3","user":{"login":"javiercantero","id":1496148,"avatar_url":"https://avatars.githubusercontent.com/u/1496148?v=3","gravatar_id":"","url":"https://api.github.com/users/javiercantero","html_url":"https://github.com/javiercantero","followers_url":"https://api.github.com/users/javiercantero/followers","following_url":"https://api.github.com/users/javiercantero/following{/other_user}","gists_url":"https://api.github.com/users/javiercantero/gists{/gist_id}","starred_url":"https://api.github.com/users/javiercantero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javiercantero/subscriptions","organizations_url":"https://api.github.com/users/javiercantero/orgs","repos_url":"https://api.github.com/users/javiercantero/repos","events_url":"https://api.github.com/users/javiercantero/events{/privacy}","received_events_url":"https://api.github.com/users/javiercantero/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-01-03T11:47:43Z","updated_at":"2017-01-03T16:29:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/streamlink/streamlink/pulls/350","html_url":"https://github.com/streamlink/streamlink/pull/350","diff_url":"https://github.com/streamlink/streamlink/pull/350.diff","patch_url":"https://github.com/streamlink/streamlink/pull/350.patch"},"body":"Current Twitch API documentation[1] recommends for every API request to specify the API version by setting the Accept HTTP header to the appropriate value. This patch:\r\n\r\n* sets the value to v3 (older versions of the API are going to be removed).\r\n* removes several unused TwitchAPI class methods part of older APIs\r\n* uses the base URL`https://api.twitch.tv/kraken` to access (public) API resources\r\n\r\n  [1]: https://github.com/justintv/Twitch-API\r\n\r\nSee #20 for details"},"comment":{"url":"https://api.github.com/repos/streamlink/streamlink/issues/comments/270155999","html_url":"https://github.com/streamlink/streamlink/pull/350#issuecomment-270155999","issue_url":"https://api.github.com/repos/streamlink/streamlink/issues/350","id":270155999,"user":{"login":"javiercantero","id":1496148,"avatar_url":"https://avatars.githubusercontent.com/u/1496148?v=3","gravatar_id":"","url":"https://api.github.com/users/javiercantero","html_url":"https://github.com/javiercantero","followers_url":"https://api.github.com/users/javiercantero/followers","following_url":"https://api.github.com/users/javiercantero/following{/other_user}","gists_url":"https://api.github.com/users/javiercantero/gists{/gist_id}","starred_url":"https://api.github.com/users/javiercantero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javiercantero/subscriptions","organizations_url":"https://api.github.com/users/javiercantero/orgs","repos_url":"https://api.github.com/users/javiercantero/repos","events_url":"https://api.github.com/users/javiercantero/events{/privacy}","received_events_url":"https://api.github.com/users/javiercantero/received_events","type":"User","site_admin":false},"created_at":"2017-01-03T16:29:29Z","updated_at":"2017-01-03T16:29:29Z","body":"@beardypig The calls to `/api/channels/<channel>/subscription` and `/api/channels/<channel>/viewer` aren't part of the public API[1], so not a good idea to try to provide them to third party apps in the first place.\r\n\r\n  [1]: https://github.com/justintv/Twitch-API/blob/master/v3_resources/channels.md"}}
{"actor":{"display_login":"javiercantero"}}