问题
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