Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarification on usage of SignIn #53

Open
dimitarvdimitrov opened this issue Apr 3, 2022 · 0 comments
Open

Clarification on usage of SignIn #53

dimitarvdimitrov opened this issue Apr 3, 2022 · 0 comments

Comments

@dimitarvdimitrov
Copy link

dimitarvdimitrov commented Apr 3, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant