Submitting a Survey Anonymously using the API

Options
When using the Survey API (CRSurveyAPI::submitSurvey - http://open.convio.com/api/#survey_api.submitSurvey_method.html), is it possible to submit a survey as an anonymous user/constituent?


I've noticed that when submitting a survey from it's published URL (on the Luminate hosted site for the account) that you can submit surveys without constituent information (or being logged in) and they appear as submitted by "Anonymous User".


I have not been able to do this with the API, because the authentication/SSO API methods all require either a valid constituent to authenticate with.


Thanks
Tagged:

Comments

  • Rod,


    You can get an authentication token for a non-logged in user using the (undocumented) CRConsAPI getLoginUrl method.


    If you happen to be using JavaScript to call the API, might I recommend the luminateExtend.js JavaScript library. It automatically handles authentication for you.


    https://github.com/noahcooper/luminateExtend
  • Thank you Noah,


    That's done the job perfectly!


    Such a quick response, I appreciate your help.

Categories