mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 00:05:55 +03:00
[GH-ISSUE #489] Are there methods to get Account information? #309
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#309
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Jun 11, 2020).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/489
E.G. Account Subscription,
FAmily invite link etc.
@ashthespy commented on GitHub (Jun 11, 2020):
Nope, since librespot works only with a Premium account to begin with, it's not required. That being said, nothing stopping you from reverse engineering and figuring out the right internal API endpoints to obtain this information.
@ghost commented on GitHub (Jun 12, 2020):
i have found some endpoints but the require the access token. is there a way to get the access token from the package?
also the endpoint is https://www.spotify.com/token-bounce/?url=/redirect/account-page for anyone interested with the following user agent:
CONTENTTYPE "application/x-www-form-urlencoded" HEADER "User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko" HEADER "Pragma: no-cache" HEADER "Accept: */*" HEADER "accept: application/json, text/plain;q=0.2, */*;q=0.1" HEADER "accept-encoding: gzip;q=1.0, compress;q=0.5" HEADER "accept-language: en-US;q=1.0" HEADER "app-platform: iOS" HEADER "content-length: 163" HEADER "content-type: application/x-www-form-urlencoded" HEADER "host: creator.wg.spotify.com" HEADER "proxy-connection: keep-alive" HEADER "spotify-app: S4A" HEADER "spotify-app-version: 2.0.15" HEADER "user-agent: S4A/2.0.15 (com.spotify.s4a; build:201500080; iOS 13.3.1) Alamofire/4.9.0"Its a POST rquest with the data
oauth_token=<accesstk>@ashthespy commented on GitHub (Jun 12, 2020):
Have a look at
keymaster.rsI'm closing this as outside the scope of
librespot- good luck on your quest :-)PS: I was also referring to mercury endpoints :-)