问题
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?
回答1:
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.
来源:https://stackoverflow.com/questions/26718508/how-would-i-return-a-respondents-responses-after-survey-completion