问题描述
- 我已尝试发送 Spotify 的 Client Credentials Flow 中建议的以下 cURL:
(这是 Spotify 的 4 个授权流程之一)
curl -X "POST"
-H "Authorization: Basic ZjM4ZjAw...WY0MzE="
-d grant_type=client_credentials
https://accounts.spotify.com/api/token
- 授权标头至关重要:
.
Authorization: Basic <base64 encoded client_id:client_secret>
please see documentation screenshot (or check it in the previous link)
我确实有 client_id 和 client_secret。
-
我已经使用 Windows 命令行完成了 Base64 编码:
certUtil -encode input_string.txt encoding_string.txt
我收到“无效请求”或类似信息。
有人可以帮忙吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)