-
Notifications
You must be signed in to change notification settings - Fork 257
Update on the "thumbs up" playlist #633
Comments
That's interesting. I'm pretty sure I tested cross-api auth in the past and only got 403s. I wonder if Google's mobile clients use that endpoint, or whether it's a more general thing that auth works for other endpoints now. |
It doesn't. #560 and my experience say that the I'm definitely going to test out using web calls with mobile auth, though, as I've been chasing down reliability in moving or adding multiple songs (to anywhere but the end) in playlists and the If you don't test it before I do, I'll report back on cross-API auth. |
Ah, right. I remember better after my morning warmup. |
"Recently Added" and "Free & Purchased" appears to be generated from |
gmusicapi already has support for Google's jsarray in utils because of its previous Webclient functionality. |
So, you can definitely get a 200 response. But all I got when poking at it quick is an empty track list. @justin-gerhardt You can set the |
So, I was getting an empty track list because @justin-gerhardt Can you confirm this with using TL/DR This specific call doesn't add anything for the mobile client. But the fact that you can seem to call the web API with a Mobile token (only tested with Bearer) seems useful. |
I can confirm that The Overall, your conclusion seems to be correct, these url's add nothing to the current implementation but they are interesting for auth reasons. |
I'm not sure how you were doing it, but it certainly returned properly for me with the
Nobody is quite sure. Like Simon, I seem to recall it doing something other than just returning store thumbs up songs at some point in the past. Given its name vs the naming in the Web API, that's probably correct. I haven't seen it do anything but return thumbs up songs with my own accounts for years now. That doesn't necessarily mean it doesn't still. But, knowing Google, they probably changed what they were doing with it and didn't bother to use a better endpoint like
Probably the most useful web API call for the Mobileclient would be for editing song metadata; Google removed that capability from the Mobile API years ago. |
For the
changing format to jsarray worked fine. As for metadata modification a cursory look shows that modification is done via a post to
"Stronger123" was the new title, all other parameters were unaltered. The response was Edit: A somewhat more complete example where the parameters are as named. |
We were talking about the streamingloadalltracks call... I haven't looked that call to see if there is a format param for it or not. Not at my computer to test with curl and the thumbs up call, but that works just fine as I said with requests and Fiddler. Also, the metadata changing is already figured out and implemented for the Webclient in gmusicapi. All that would have to be done is making it calls let with the Mobileclient. |
Excellent, already implemented features are the best features. |
Double fun fact, you can also use a bearer token from the Music Manager side of things to access the web calls. |
Can a mobile token access the Music Manager api? |
Nope. No holy grail there it seems. Each scope appears to be limited to specific Google client IDs, so no cross-calling there. |
Do you mean the api errors or the scope can't be requested? I just tried using the mobile client creds to request both https://www.googleapis.com/auth/musicmanager and https://www.googleapis.com/auth/skyjam scopes and that worked. I haven't tested calling the api yet though. |
You can get a token. But cross-API calls will fail with a 403. |
As has been noted in previous issues I have noticed that MobileClient::get_all_playlists does not return the auto-generated playlists. The current workaround seems to be to look for thumbed up tracks in library but this omits songs that are rated but not added.
I did a bit of digging in the play music web application and found a request to
https://play.google.com/music/services/getephemthumbsup
. I played with the parameters a bit and found you can get a json response describing all thumbs up'ed tracks (added to the library or not) by sending a post request with no query parameters or body and anAuthorization: Bearer
header set to the oauth access token from the MobileClient.The text was updated successfully, but these errors were encountered: