Trakt['oauth/device']

class trakt.interfaces.oauth.device.DeviceOAuthInterface(client)
code(**kwargs)
poll(device_code, expires_in, interval, **kwargs)

Construct the device authentication poller.

Parameters:
  • device_code (str) – Device authentication code
  • expires_in – Device authentication code expiry (in seconds)
  • interval (int) – Device authentication poll interval
Return type:

DeviceOAuthPoller

token(device_code, **kwargs)