Deep-linking into Spotify app

空扰寡人 提交于 2019-12-11 04:16:37

问题


I’m having trouble finding documentation on Stack Overflow and on the Spotify Developers site around Deep-linking into a Spotify app from an external resource (i.e. a webpage). Can you provide a sample URI that would be used for an app with the name “mymusicapp”?

Thanks!


回答1:


A URI for your app would be:

spotify:app:mymusicapp

To deep link, just keep going:

spotify:app:mymusicapp:artist:Coldplay

If you do that, the ARGUMENTSCHANGED event will fire on the application object.

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

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

For more information, see the Application class documentation.




回答2:


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/



来源:https://stackoverflow.com/questions/12360026/deep-linking-into-spotify-app

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!