简体   繁体   中英

How do I get access to a Google Play Music library on Android?

I'm trying to do a deep integration with Google Play Music. I need to be able to access the following from my Android app:

  1. Library content directly uploaded by free users
  2. Library content purchased but not downloaded by free users
  3. Library content purchased and downloaded by free users
  4. Podcasts subscribed but not downloaded by free users
  5. Podcasts subscribed and downloaded by free users
  6. Library content saved but not downloaded from GPM cloud by Artists, Albums, and Songs, from a paid account.
  7. Library content saved and downloaded from GPM cloud by Artists, Albums, and Songs, from a paid account.

I'm aware of the Unofficial API and I know I can get some local data from the ContentProvider. What other approaches are available?

AFAIK, Google Play Music is not yet included in the list of supported Google Play services API. References:

However, it is noted in Accessing Google APIs that

If the Google API you want to use is not included in the Google Play services library, you can connect using the appropriate REST API, but you must obtain an OAuth 2.0 token. For more information, read Authorizing with Google for REST APIs .

You may want to also regularly check Google APIs for Android - Release Notes to know the latest updates on Google APIs for Android.

Suggested solution given in this SO post might also help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM