如何从Spotify Web API获取播放列表的特定快照?(How can I get a specific snapshot of a playlist from the Spotify Web

编程入门 行业动态 更新时间:2024-10-26 15:23:43
如何从Spotify Web API获取播放列表的特定快照?(How can I get a specific snapshot of a playlist from the Spotify Web API?)

根据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!

更多推荐

本文发布于:2023-07-30 01:26:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1321374.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:快照   播放列表   API   Spotify   Web

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!