【问题标题】:Is it possible to renew the Spotify access token automatically?是否可以自动更新 Spotify 访问令牌?
【发布时间】:2017-02-17 07:46:12
【问题描述】:

我已经搜索了很多,但我找不到正确的答案。 我正在使用 Spotify Web API。访问令牌仅在 1 小时内有效。我想知道是否可以自动更新 Spotify 访问令牌?如果答案是肯定的,我该怎么做?

谢谢

【问题讨论】:

    标签: api spotify access-token


    【解决方案1】:

    找到的更好的解决方案是:登录使用Authorization Code Flow 您将收到 access_token 和 refresh_token - 当 access_token 过期时,您可以获得新的使用 refresh_token,如 '7 中所述。从刷新令牌请求访问令牌'

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-09-14
      • 2017-06-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多