-
Notifications
You must be signed in to change notification settings - Fork 325
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
Labels
Comments
I’m not aware of a method to terminate the current session. However the
real mobile app (whose API we’re using) probably generates a token with
auth.generateAccessToken, saves that and used it instead of the user’s
credentials to log in, thus allowing Pandora to (properly) track the
number of devices in use. We should probably do the same to avoid this
issue. That doesn’t look too compilcated, so do you want to submit a
pull request?
|
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? |
You won’t get far with tcpdump. The protocol is encrypted on the
application layer.
So your best bet would be my protocol documentation
here: https://6xq.net/pandora-apidoc/json/methods/
Unfortunately the required methods (auth.generateAccessToken I believe
and auth.userLogin with accessToken) are not documented yet.
The next option is looking at decompiled Java code (here:
https://6xq.net/paste/olnapmut.html). Essentially you’re searching for
the strings mentioned above and then something like
hashtable.put("parameter", "value"). These are the queries you need to
build in src/libpiano/request.c. Ping me if you need help with that.
|
Per Pandora API docs (I do not have a developer account).
Example response:
|
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
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?
The text was updated successfully, but these errors were encountered: