【发布时间】:2016-10-02 19:25:11
【问题描述】:
我根据本文档使用OAuth 2.0 进行授权:(https://developers.vendhq.com/documentation/oauth.html#oauth) 并出现此错误:
"error": "invalid_request", "error_description": "请求缺少必需的参数,包含无效的参数值,包含不止一次的参数,或者格式错误。检查“grant_type”参数。”
请求
方法:POST
Content-Type: application/x-www-form-urlencoded
URL : https://{domain_prefix}.vendhq.com/api/1.0/token
参数:
code = {code}
client_id = {app_id}
client_secret = {app_secret}
grant_type = authorization_code
redirect_uri = {redirect_uri}
【问题讨论】:
标签: oauth-2.0