Hello,
I try to get “sub_plan” and “sub_plan_name”, but when i use:
https://api.twitch.tv/kraken/users/<id_user>/subscriptions/<id_channel>?oauth_token=<token>
i get:
{
created_at: "2017-07-22T18:39:12Z",
_id: "5b846c183e711aa1b4157efea1cb205b2971efe0",
_links: {...},
channel: {...}
}
And I do not get the parameters that I need (“sub_plan”, “sub_plan_name”)
What am I doing wrong?
Problem solved!
You just need use this one:
?oauth_token=<token>&api_version=5
Yeah you are on API v3 which is the current default.
Either do what you have done passing token and version as a query string argument, or pass them as header arguments; https://dev.twitch.tv/docs/v5/guides/using-the-twitch-api/
curl -H 'Accept: application/vnd.twitchtv.v5+json' \
-H 'Authorization: OAuth cfabdegwdoklmawdzdo98xt2fo512y' \
-X GET https://api.twitch.tv/kraken
system
Closed
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.