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

Logout? #669

Open
midicase opened this issue Sep 15, 2018 · 5 comments
Open

Logout? #669

midicase opened this issue Sep 15, 2018 · 5 comments
Labels

Comments

@midicase
Copy link

Love the app. Been coding a mod to it, but run into a problem when exiting/restarting and Pandora flagging my account with "Multiple Streams". Pandora is counting the successive calls to login when restarting PB and flags the account thinking it's multiple users. I have to wait a bit for them to age out the error before working again.

Is there a logout routine with Pandora to avoid this?

@PromyLOPh
Copy link
Owner

PromyLOPh commented Sep 15, 2018 via email

@midicase
Copy link
Author

midicase commented Sep 15, 2018

I'd be glad to try, but I'm not familiar with snooping on android client. Is really any different than using tcpdump/wireshark? Though I guess the emulator would be easiest?

@PromyLOPh
Copy link
Owner

PromyLOPh commented Sep 15, 2018 via email

@PromyLOPh PromyLOPh added the bug label Sep 15, 2018
@CrustyBarnacle
Copy link

Per Pandora API docs (I do not have a developer account).

curl 'https://www.pandora.com/oauth/v1/token' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -H 'Authorization: Basic ' \
  -d grant_type=authorization_code \
  -d redirect_uri="" \
  -d code=

Example response:

{
   "access_token":"eyJ6aXAiOiJERUYiLCJraWQiOi_bs8i2XKP7PM9uwHUKWgEj._TFVXhdZYGW0eY89TtBZGw",
   "token_type":"Bearer",
   "refresh_token":"eyJ6aXAiOiJERUYiL`rizKC5Yew38_u7y_mGiNspC8VsMn6x0xs.FeD5jJc9VHhX_FhVKlk9zw",
   "expires_in":14400
}

@PromyLOPh
Copy link
Owner

pianobar is using a different API though, not sure if the token generated by oauth are valid for that API.

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

No branches or pull requests

3 participants