【发布时间】:2017-06-09 17:44:12
【问题描述】:
我想进行以下 curl 调用以获取访问令牌:
curl -k -XPOST --user "{user}" {url}/access_token -d 'grant_type=authorization_code&code={code}&redirect_uri={uri}'
但是,我收到以下错误声明:
'code' is not recognized as ane internal or external command, operable program or batch file.
'redirect_uri' is not recognized as ane internal or external command, operable program or batch file.
当我检查跟踪时,我看到正文只包含这个:'grant_type=authorization_code
如何确保所有参数都通过?
【问题讨论】: