go-plex-client icon indicating copy to clipboard operation
go-plex-client copied to clipboard

Clarification on usage of `SignIn`

Open dimitarvdimitrov opened this issue 3 years ago • 0 comments

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?

dimitarvdimitrov avatar Apr 03 '22 08:04 dimitarvdimitrov