Hi,
I develop a Twitch client on tvOS (TwitchyTV).
I am working on VODs right now.
I’d like to use what I call the resumewatching
API. (API available at : https://api.twitch.tv/api/resumewatching/user?id=<user_id>
)
(Link to update position for a video is : https://api.twitch.tv/api/resumewatching/user-video?id=<user_id>
)
I understood that for this API to work, I need a cookie set when I connect on Twitch which name is persistent
.
Because I work on tvOS (which have no WebView), I have a website that do the OAuth connection, a give a small token that the user has to enter on its Apple TV to finish the connection.
When I do the last step of the OAuth 3 legs protocol to get the acces_token
, I have a Set Cookie Response Header that set a unique_id
key, but no persistent
key.
I’d like to know if this difference is normal or not ?
If this is normal, how can I do this type of request knowing that it requires a cookie that I do not have ?
Thanks