- Posts: 8
- Thank you received: 0
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
2 months 3 weeks ago #241467
by andyrue
Get Participant Information with Responses using RemoteControl export_responses was created 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?
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.
2 months 3 weeks ago #241477
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Get Participant Information with Responses using RemoteControl export_responses
You will need to use the get_participant_properties() method.
- api.limesurvey.org/classes/remotecontrol...rticipant_properties
- 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.
2 months 3 weeks ago #241479
by andyrue
Replied by andyrue on topic Get Participant Information with Responses using RemoteControl export_responses
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.
2 months 3 weeks ago #241481
by andyrue
Replied by andyrue on topic Get Participant Information with Responses using RemoteControl export_responses
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.