【发布时间】:2019-03-14 17:09:35
【问题描述】:
我正在尝试通过 PostMan 使用 API 获取调查 ID。
我生成了以下请求,但我仍然无法获得调查 ID。
请求 1:-
GET - https://api.surveymonkey.com/oauth/authorize?
with below parameter passed-
response_type = code
redirect_uri = <<OAUTH_REDIRECT_URL>>
client_id = <<CLIENT_ID>>
请求 2:-
POST - https://api.surveymonkey.com/oauth/token
with below parameters passed-
client_id = <<CLIENT_ID>>
client_secret = <<SECRET_KEY>>
code = <<ACCESS_TOKEN>>
grant_type = authorization_code
redirect_uri = <<OAUTH_REDIRECT_URL>>
但是,在第二次请求之后,我遇到了错误-
{
"error_description": "Missing required parameter(s): client_id, client_secret, code, grant_type, redirect_uri",
"error": "invalid_request"
}
如果我遗漏了什么,请提出建议。
【问题讨论】:
-
不,不是,第一个请求呢。听起来可以吗?