I have about 8 or 9 surveys. The problem is more with my syntax as I'm not supplying the proper params. My understanding of PHP is more Intermediate than Advanced but can pick up things quickly once their explained to me. I hear ya on Surveymonkey's oAuth process. This is my first time encountering oAuth. I used the console and was successful at getting some responses for all of them but it was difficult to see the survey response details as well. I'm hoping this isn't too complicated. You were able to return an array that you printed out the mapped items using print_r.
I'm referring to the documentation at the developer site - https://developer.surveymonkey.com/mashery/get_survey_details
I basically was trying to replace the following block of code
$parameters = new stdClass;
$success = $client->CallAPI('https://api.surveymonkey.net/v2/surveys/get_survey_list?api_key='.$client->api_key, 'POST', $parameters, array('FailOnAccessError'=>true, RequestContentType'=>'application/json'), $surveys);
with a different url for one of the other endpoints. Any way to make it Authenticate once and then make different calls to the different Url endpoints?
/* i.e. Get Survey Details */
api.surveymonkey.net/v2/surveys/get
...
which requires the survey_id as a parameter. How would I specify that parameter? I do get the error below:
Array
(
[status] => 3
[errmsg] => Required field 'survey_id' is missing
)
Where do I specify 'survey_id' in that CallAPI function?
Also, I noticed that the callback forces me to login each time I visit that page - prompting me for the username and password. -
Authorize webdesignmx05 to use your SurveyMonkey account.
Is it possible to provide a Authorization Token and API key that allows for open access. I'm looking to automate survey extraction data via a Cron job. Can the login be bypassed since we already have the credentials.