1

我无法在 Stack Overflow 和 Spotify 开发者网站上找到有关从外部资源(即网页)深度链接到 Spotify 应用程序的文档。您能否提供一个用于名为“mymusicapp”的应用程序的示例 URI?

谢谢!

4

2 回答 2

4

您的应用程序的 URI 将是:

spotify:app:mymusicapp

要进行深度链接,请继续:

spotify:app:mymusicapp:artist:Coldplay

如果你这样做,ARGUMENTSCHANGED事件将在application对象上触发。

var sp = getSpotifyApi();
var models = sp.require('$api/models');

models.application.observe(models.EVENT.ARGUMENTSCHANGED, function() {
    console.log(application.arguments);
});

有关详细信息,请参阅应用程序类文档

于 2012-09-11T11:55:30.240 回答
1

Does this answer your question? http://www.spotify.com/se/blog/archives/2008/01/14/linking-to-spotify/

There is also the Web api which can be useful for finding the links: https://developer.spotify.com/technologies/web-api/

于 2012-09-10T22:29:12.623 回答