本文介绍了Spotify的应用程序API:任何更多的文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经用新的 Spotify的应用程序API 从昨天开始,但即使虽然拥有在线文档pretty好,我找不到使用您收到API调用对象的任何后 getSpotifyApi(1)。他们有某种在线 API参考,但不知道如何获得这些对象的描述,如何内置的资源的访问,如图形等,所有的一切,我觉得我失去了一些东西。
我可以使用开发人员检查检查API,并寻找一些可用的应用程序玩弄它。有什么办法看的Javascript code?

I've been playing around with the new Spotify Apps API since yesterday but even though the documentation they have online is pretty good, I can't find anything on to use the API object you receive after calling getSpotifyApi(1). They have some sort of API reference online but no description of how to get these objects, how to access built-in resources such as graphics etc. All in all, I feel like I am missing something.I was able to play around with it by examining the API using the developer inspector and looking at some of the available apps. Is there any way to look at the Javascript code?

推荐答案

目前文档是很稀疏。我发现它有助于看看Spotify.app资源的应用程序包中。

At the moment the documentation is very sparse. I found it helpful to have a look at Spotify.app's resources inside the application bundle.

在Mac上,你可以找到在应用程序捆绑了一些有趣的来源:Spotify.app/Contents/Resources/cef_views

On a mac you can find some interesting sources in the app bundle at: Spotify.app/Contents/Resources/cef_views

更新:随着Spotify的preVIEW的新版本,我的解决方案并不完全不再适用。您仍然可以访问某些资源在Spotify.app/Contents/Resources/apps但是他们现在COM pressed是为每个应用程序一个文件。但是,您仍然可以通过查看这些文件访问某些信息。

Update: With the new version of the spotify preview, my solution does not fully apply anymore. You can still access some of the resources at Spotify.app/Contents/Resources/apps but they are now compressed into one file per app. However, you can still access some of the information by looking into these files.

这篇关于Spotify的应用程序API:任何更多的文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!