I have been working a bit with the v5 API and what I have found is that the documents does not accurately reflect the API.
Example:
curl -i -H 'Accept: application/vnd.twitchtv.v5+json' -H 'Client-ID: MY-CLIENT-ID' 'https://api.twitch.tv/kraken'
will yield the following headers:
HTTP/1.1 200 OK
Date: Sat, 31 Dec 2016 18:55:18 GMT
Content-Type: application/json
Content-Length: 46
Connection: keep-alive
Server: nginx
Access-Control-Allow-Headers: Accept, Authorization, Client-Id, Twitch-Api-Token, X-Forwarded-Proto, X-Requested-With, X-Csrf-Token, Content-Type
Access-Control-Allow-Methods: GET, POST, PUT, DELETE
Access-Control-Allow-Origin: *
Access-Control-Max-Age: 0
Twitch-Trace-Id: REMOVED
Front-End-Https: on
However, in the documents located at
https://dev.twitch.tv/docs/v5/guides/using-the-twitch-api/
under API Versions and Mime Types
it clearly states there is supposed to be an x-api-version
header.
The only reason I have come by this is that in the overview located at
It specifies that all _link
objects have been removed, however doing a request
curl -i -H 'Accept: application/vnd.twitchtv.v5+json' -H 'Client-ID: MY-CLIENT-ID' 'https://api.twitch.tv/kraken/users/20037/follows/channels`
WILL yield the x-api-version
header, however will still return _link
objects.