Spotify curL无效客户端问题



我在这里遵循源代码,但是我不能用curL发送查询。我得到一个无效的客户端错误。

curl -H "Authorization: Basic <base64 ZGQyXGNlZQY1OTUxNDc3NGJhMm.......ZTU0YDY=>" -d grant_type=authorization_code -d code=code -d redirect_uri=http%3A%2F%2Flocalhost:3000 https://accounts.spotify.com/api/token  

根据源代码,我需要获得我的刷新令牌,但不知何故我不能。

很遗憾我不能做,如果你能帮助我,我将非常感激。

旋度查询以下工作

获取刷新令牌

curl -d client_id=$CLIENT_ID -d client_secret=$CLIENT_SECRET -d grant_type=authorization_code -d code=$CODE -d redirect_uri=$REDIRECT_URI https://accounts.spotify.com/api/token

谢谢,

最新更新