I am having a problem with getting an Access Token on the Survey Monkey API. I am using login_with_surveymonkey.php provided in http://www.phpclasses.org/package/7700-PHP-Authorize-and-access-APIs-using-OAuth.html and I already changed the client_id, client_secret, redirect_url, and api_key which I got from https://developer.surveymonkey.com/apps/mykeys.
Here are the details:
- client_id: username I used in logging in to developer.surveymonkey.com
- client_secret, api_key: copied from the details provided at developer.surveymonkey.com/apps/mykeys
- redirect_url: copied from the details provided in developer.surveymonkey.com/apps/myapps
Provided those information, I am still getting this error message:
Error: it was not possible to access the OAuth access token: it was returned an unexpected response status 401 Response: {"error_description": "Invalid client_id/client_secret/api_key", "error": "invalid_client"}
I am currently running this on my local machine and my curl is already enabled. Do I need to configure anything else in order to resolve this issue?
httpsserver - user2092317