go-plex-client
go-plex-client copied to clipboard
Clarification on usage of `SignIn`
SignIn does not set the Plex.URL field. Because of this if I sign in with a username and password I can't use any of the query methods (e.g. GetSessions()) because the HTTP request goes to fmt.Sprintf("%s/status/sessions", p.URL) (code). So I get an error: Get "/status/sessions": unsupported protocol scheme ""
To overcome this I'm calling SignIn(), then using Plex.Token in a call to New(). New() sets the URL.
Is my use of SignIn the intended way?