REST API - export_responses don't export token infos

More
3 months 3 weeks ago #169459 by stevelegare
stevelegare created the topic: REST API - export_responses don't export token infos
Hi,
I have a script to import responses but the informations for the tokens are not in the export. I got only the token code.

I added 3 attributes (attribute_1, attribute_2, attribute_3)

Do I miss something?

I'm using LS 2.05

$myJSONRPCClient->export_responses ($sessionKey, SURVEY_ID,
"csv",
"fr",
"complete",
"full",
"long",
$idFirst,
$idLast
);

Please Log in or Create an account to join the conversation.

More
3 months 2 weeks ago #169543 by stevelegare
stevelegare replied the topic: REST API - export_responses don't export token infos
I used list_participants with custom attributes to retrieve the data and then join with tokenID on the other REST call (export_responses)
$attributes = array("attribute_1", "attribute_2", "attribute_3");
$tabReponses = $myJSONRPCClient->list_participants ($sessionKey, SURVEY_ID, 0, 1000, false, $attributes);

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!