https://api.twitch.tv/kraken/users/105279329?client_id=xxxx I put that link in the address bar with my client id and i keep getting an error like this "error": "Not Found", "status": 404, "message": "User \105279329\" was not found"
Any reason for that?
Mellow
June 15, 2017, 9:08am
2
You’re not using the versioning parameter.
Append “&api_version=5” to your URL
To explain further,
Note: The default version of the API is V3 until Feb. 14, 2018. However, V3 is scheduled to be deprecated (2017) and removed altogether (2018), so we strongly recommend you migrate to V5 now.
This chrome plugin may help your hassles, lets you set ClientID and TwitchAPI Version and thus pass as a header
2 Likes
Hi @Hardrock
As @BarryCarlyon mentioned in his comment. The client id and api version are both set in the headers not URL for the request.
Both can be set in the URL too using client_id
and api_version
parameters respectively.
Never passed these params within URL. I think headers keeps the request a little tidy as well so I would personally recommend using headers anyways
Also you can set headers once and reuse them for multiple calls rather than having to add the params to every request URL. I’m sure you will agree
An of course headers are not logged in history, and query string arguments are
system
Closed
July 25, 2017, 11:39am
9
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.