get_token | R Documentation |
This is an unfortunately home-brewed version of what should be a simple call to httr2::oauth_flow_device()
,
but since the <trakt.tv> API plays ever so slightly fast and mildly loose with RFC 8628, that's not possible.
get_token(cache = TRUE)
cache |
|
RFC 8628 expects the device token request to have the field "device_code", but the trakt.tv API expects a field named "code". That's it. It's kind of silly.
get_token()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.