PHP Classes

Survey Monkey: Cannot access token

Recommend this page to a friend!

      PHP OAuth Library API  >  All threads  >  Survey Monkey: Cannot access token  >  (Un) Subscribe thread alerts  
Subject:Survey Monkey: Cannot access token
Summary:Survey Monkey: Cannot access token
Author:Judith Yu
Date:2013-10-08 06:26:21
Update:2013-10-11 23:06:00

  1. Survey Monkey: Cannot access token   Reply   Report abuse  
Judith Yu - 2013-10-08 06:26:21

I'm new to OAuth and I need help in access the Survey Monkey API. I tried using login_with_surveymonkey.php code and changed the client_id, client_secret, and api_key. It is giving me this error message:

'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"}'

However, when I used the io-docs ( using the same client_id, client_secret, and api_key, I was able to connect to retrieve a token.

Am I missing something?


  2. Re: Survey Monkey: Cannot access token   Reply   Report abuse  
Manuel Lemos - 2013-10-11 23:06:00 - In reply to message 1 from Judith Yu
I just tried the login_with_surveymonkey.php script and it works for me.

I suspect you are not using the right credentials.

Once you create an application, you need to set the client_id to SurveyMonkey user account, client_secret with shared secret and api_key with the API key. Also the Callback URL must be set to the URL of this script.