How would I return a respondent's responses after survey completion?

社会主义新天地 提交于 2019-12-11 14:05:49

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!