Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Get Participant Information with Responses using RemoteControl export_responses

  • andyrue
  • andyrue's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 3 months ago #241467 by andyrue
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.6.10
Own server or LimeSurvey hosting: Own Server
==================

I'm using the remote control api to build a custom reporting interface. I have some closed participation surveys and I'd like to get the First & Last Name for the Invited Participants linked to the Responses, but it seems the only field related to the Participant that is returned is the Access Code. Is there a good way to do what I'm trying to do?

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 3 months ago #241477 by tpartner
You will need to use the get_participant_properties() method.

- api.limesurvey.org/classes/remotecontrol...rticipant_properties

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

  • andyrue
  • andyrue's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 3 months ago #241479 by andyrue
Thank you, that looks like the right thing, but I'm not figuring out on how to use it. I figure I need to use the $aTokenQueryProperties array to query the "token" with the access code that I have, but I'm not getting anywhere with my attempts. Could you give me an example of what the params should look like to query based on the "token" column?

Please Log in to join the conversation.

  • andyrue
  • andyrue's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 3 months ago #241481 by andyrue
I got it figured out. The "array" type was confusing me, but I see now it was needing an associative array. I'm writing this as raw http parameters so for the tokenQueryProperties I had to write it like this.
Code:
{"token":"my_random_token"}
.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose