Versions in this module Expand all Collapse all v1 v1.0.1 Jan 26, 2020 Changes in this version + var BuildID = "dev" + var Version = "master" + type OAuth struct + AccessToken string + Error string + RefreshToken string + Scope string + func GetOauthAccessToken(code string, redirectUri string, clientId string, clientSecret string) (*OAuth, error) + type Session struct + func Login(username string, password string, deviceName string) (*Session, error) + func LoginDiscovery(cacheBlobPath string, deviceName string) (*Session, error) + func LoginDiscoveryBlob(username string, blob string, deviceName string) (*Session, error) + func LoginDiscoveryBlobFile(cacheBlobPath, deviceName string) (*Session, error) + func LoginOAuth(deviceName string, clientId string, clientSecret string) (*Session, error) + func LoginSaved(username string, authData []byte, deviceName string) (*Session, error) + func (s *Session) Country() string + func (s *Session) DeviceId() string + func (s *Session) Discovery() *discovery.Discovery + func (s *Session) Mercury() *mercury.Client + func (s *Session) Player() *player.Player + func (s *Session) ReusableAuthBlob() []byte + func (s *Session) Stream() connection.PacketStream + func (s *Session) Username() string