简体   繁体   English

如何在Android上访问Google Play音乐库?

[英]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. 我正在尝试与Google Play音乐进行深度整合。 I need to be able to access the following from my Android app: 我需要能够从我的Android应用访问以下内容:

  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. 艺术家,专辑和歌曲从付费帐户保存但未从GPM云下载的图书馆内容。
  7. Library content saved and downloaded from GPM cloud by Artists, Albums, and Songs, from a paid account. 艺术家,专辑和歌曲从付费帐户从GPM云保存和下载的图书馆内容。

I'm aware of the Unofficial API and I know I can get some local data from the ContentProvider. 我知道非官方API,并且知道可以从ContentProvider获得一些本地数据。 What other approaches are available? 还有哪些其他方法可用?

AFAIK, Google Play Music is not yet included in the list of supported Google Play services API. AFAIK,Google Play音乐尚未包含在受支持的Google Play服务API列表中。 References: 参考文献:

However, it is noted in Accessing Google APIs that 但是,在访问Google API中指出,

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. 如果您要使用的Google API未包含在Google Play服务库中,则可以使用适当的REST API进行连接,但是您必须获取OAuth 2.0令牌。 For more information, read Authorizing with Google for REST APIs . 有关更多信息,请参阅使用REST API向Google授权

You may want to also regularly check Google APIs for Android - Release Notes to know the latest updates on Google APIs for Android. 您可能还需要定期检查Android版Google API-发行说明,以了解Android版 Google API的最新更新。

Suggested solution given in this SO post might also help. 在本SO帖子中给出的建议解决方案也可能会有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在我的Android应用中使用下载的Google Play商店音乐? - How do I use downloaded Google Play Store music in my android app? 如何获得Google Play结算库? - How do I get the Google Play Billing Library? 如何为Google Play音乐创建直接链接? - How do I create a direct link for google play music? 我怎么知道我是否可以在Android上播放真实音乐? - How do I know if I can play real music on Android? 如何从Google Play音乐访问媒体? - How to access media from Google Play Music? 如何让Android上的音乐播放器按钮像谷歌播放音乐一样 - How to get the music player buttons on Android wear like google play music 如何访问Android默认音乐应用程序创建的播放列表并调用音乐应用程序播放? - How can I access playlist created by android default music app and call the music app to play it? 如何使我的Android应用程序播放手机音乐播放器中的音乐? - how do i make my android application play music from the phone's music player? 如何在Google Kitkat 9上通过Google的adb命令通过mp3文件播放mp3文件? - How can I play a mp3 file via adb command with google play music on android kitkat 9? 获取音乐预览-Google Play音乐API - Get music preview - Google Play Music API
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM