Spotify Apps API:还有更多文档吗? [英] Spotify Apps API: any more documentation?

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

问题描述

我一直在尝试新的 Spotify Apps API 从昨天开始,尽管他们在线的文档非常好,但我找不到任何关于使用您在调用 getSpotifyApi(1) 后收到的 API 对象的信息.他们在网上有某种API参考,但没有说明如何获取这些对象,如何访问图形等内置资源.总而言之,我觉得我错过了一些东西.通过使用开发人员检查器检查 API 并查看一些可用的应用程序,我能够尝试使用它.有没有办法查看Javascript代码?

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 预览版的新版本中,我的解决方案不再完全适用.您仍然可以访问 Spotify.app/Contents/Resources/apps 中的一些资源,但它们现在每个应用程序都被压缩为一个文件.但是,您仍然可以通过查看这些文件来访问某些信息.

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 Apps API:还有更多文档吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆