如何通过 Spotify Web API 获取收听分钟数?

发布于 2025-01-10 10:03:24 字数 453 浏览 3 评论 0原文

我想获取登录用户收听的分钟数。

文档。

最初,我想到 获取用户最喜欢的项目,然后使用每个曲目的长度和播放次数进行计算,但响应没有给出播放次数,并且可以获得的最大项目数限制为 50。

我很确定这是可以做到的,因为这个网站做到了。

I want to get the minutes listened for the signed in user.

There is no straight-forward way to do so mentioned in the docs.

Initially, I thought of getting user's top items and then calculating using each track's length and times played, but the response doesn't give the times played and the maximum number of items that can be obtained is limited to 50.

I'm pretty sure that this can be done because this website does it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文