0

I fairly new to using the SurveyMonkey API.

My site is designed in WordPress. After users login, they have access to a survey page where there are links to several types of surveys. What I would like to do, after a given survey is completed by a user, is retrieve their responses.

Any ideas on where to begin?

  • So you want to poll for when a survey is completed? I would check out the SurveyMonkey polling guide to get started: https://developer.surveymonkey.com/mashery/polling – Miles Cederman-Haysom Nov 03 '14 at 17:21
  • My apologies for the lack of clarity. I want the individual user's responses after they have completed the survey. It there a way to retrieve a specific user's ID? – ReliableResearch Nov 03 '14 at 18:40
  • Weblink respondents are anonymous, unless you use the 'c' query string parameter to identify them. Email respondents can be identified by their email address. Both identifiers can be retrieved using get_respondent_list (https://developer.surveymonkey.com/mashery/get_respondent_list) - you can then use the respondent id associated with that response to retrieve the specific response using get_responses (https://developer.surveymonkey.com/mashery/get_responses) – Miles Cederman-Haysom Nov 03 '14 at 19:20
  • Awesome, I think that answers my question. The 'c' query will allow me to identify an anonymous survey respondent. I can then use that result to query using the get_responses method. – ReliableResearch Nov 03 '14 at 21:17
  • @MilesCederman-Haysom: please post your comment as an answer so others can find it. (The ?c=xxx query string is an important tool in SurveyMonkey.) – fearless_fool Nov 07 '14 at 08:05

1 Answers1

0

Weblink respondents are anonymous, unless you use the 'c' query string parameter to identify them.

Email respondents can be identified by their email address.

Both identifiers can be retrieved using get_respondent_list - you can then use the respondent id associated with that response to retrieve the specific response using get_responses.

Note that identifying people using the 'c' parameter appears to be deprecated now - it is no longer listed on the SurveyMonkey help center. It still technically works, but is not recommended for new development. The supported way to do this is via custom varilables which requires a platinum account. You then have unlimited variables to track users, and these are returned in the get_responses response.