[英]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应用访问以下内容:
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.