Question

Is it possible with the public app API to get data such as when a friend finish playing a track, when a friend adds a track to a playlist etc? Like the Feed app(spotify:app:feed).

The feed app seems to be doing something like this:

var presenceEvents = react.fromDOMEvent(sp.core, "hermes"); 

presenceEvents.subscribe(function(e) {
    console.log(sp.core.parseHermesReply("PresenceState", e.data[1]));
}

(This code by the way don't work as intended but seems this is the way to do it. Not all events are caught)

Is it okay to do it in this way, or will it not be accepted into App finder? Is it possible to do it using the documented apps API classes? I can't find anything for this in the documentation, is there anything undocumented I can use?

Was it helpful?

Solution

EVERYTHING not in the public documentation will cause you to be rejected from the App Finder, which includes EVERYTHING under sp.core.

Please only use the publicly documented API methods when writing Spotify applications. In addition, the APIs you're posting are private and won't work in your application.

To be clear, the feed data will never be available to your Spotify application in any form, for privacy reasons. The reason your code doesn't work is because of this restriction.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top