type Activation struct { Code string }
func (a *Activation) String() string
type Code struct { Token string }
type Dash struct { Body []byte Url *url.URL }
type Playback struct { Drm struct { Widevine struct { LicenseServer string } } Url string // MPD }
func (p *Playback) Dash() (*Dash, error)
func (p *Playback) Widevine(data []byte) ([]byte, error)
type Token struct { AuthToken string }
func FetchToken(codeData *Code) (*Token, error)
input can be nil /api/v1/account/token
func (t *Token) Activation() (*Activation, error)
/api/v1/account/activation
func (t *Token) Code(activationData *Activation) (*Code, error)
/api/v1/account/activation/code
func (t *Token) Playback(rokuId string) (*Playback, error)
/api/v3/playback