根据Spotify文档 ,对播放列表的更新会导致新版本具有自己的snapshot_id。
但是,在获取播放列表和获取播放列表轨道的文档中,没有关于如何指定快照的文档。
此外,似乎没有办法发现过去的快照。
那么,是否有一种(可能是未记录的)方法来发现现有的snapshot_ids,并查看播放列表,因为它曾经被赋予了snapshot_id?
According to the Spotify docs, updates to a playlist result in a new revision, having its own snapshot_id.
In the docs for getting a playlist and for getting a playlists tracks, though, there is no documentation for how to specify a snapshot.
Furthermore, there doesn't seem to be a way to discover past snapshots.
So, is there a (perhaps undocumented) way to discover existing snapshot_ids, and view a playlist as it once was given a snapshot_id?
最满意答案
非常好的问题,它让我对你正在建设的东西感到好奇! 我在Web API上工作,我可以告诉你它不受支持。 Web API使用快照的原因是支持并发更改 - 例如,如果您检索播放列表并想要删除其中一个轨道,您希望确保删除正确的轨道,即使您检索到它后发生了更改。
希望这有帮助!
Very good question and it makes me curious of what you're building! I work on the Web API, and I can tell you that it isn't supported. The reason the Web API uses snapshots is to support concurrent changes - e.g. if you retrieve a playlist and want to remove one of its tracks, you want to be sure that the correct track is removed even though a change has occurred since you retrieved it.
Hope this helped!
更多推荐
发布评论