0
在Google脚本中,我试图从spotify调用client_credentials OAuth流,而它应该返回访问令牌,请求失败,代码405在Google脚本中:UrlFetchApp.fetch(''https://accounts.spotify.com/api/token'')返回代码405
data = {
'grant_type':'client_credentials',
'client_id' : 'CLIENT_ID',
'client_secret' : 'CLIENT_SECRET'
}
var access_token= UrlFetchApp.fetch('https://accounts.spotify.com/api/token', data);
更多关于Spotify的OAUTH https://developer.spotify.com/web-api/authorization-guide/#client-credentials-flow