【发布时间】:2014-10-15 11:04:26
【问题描述】:
我一直在尝试在 MeteorJS 中重新创建 spotify oauth 连接。我已经请求访问和刷新令牌,但我现在不断收到 415 错误。以下是相关代码:
var results = HTTP.post(
'https://accounts.spotify.com/api/token',
{
data: {
code: code,
redirect_uri: redirectURI,
grant_type: 'authorization_code',
client_id: clientID,
client_secret: clientSecret
},
headers: {
'Content-Type':'application/json'
}
}
);
我似乎在这个演示中找不到任何其他关于问题和代码的好的文档:
https://github.com/spotify/web-api-auth-examples/tree/master/authorization_code
完美运行。
【问题讨论】:
-
是的,我遇到了同样的问题。嗯。