I am trying to get the survey id by using API through PostMan.
I have below requests generated but still I am not able to get the survey id.
Request 1:-
GET - https://api.surveymonkey.com/oauth/authorize?
with below parameter passed-
response_type = code
redirect_uri = <<OAUTH_REDIRECT_URL>>
client_id = <<CLIENT_ID>>
Request 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>>
However, after second request, I am getting below error-
{
"error_description": "Missing required parameter(s): client_id, client_secret, code, grant_type, redirect_uri",
"error": "invalid_request"
}
Please suggest if I am missing anything.