Welcome to the LimeSurvey Community Forum

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

REST API - export_responses don't export token infos

  • stevelegare
  • stevelegare's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
5 years 10 months ago #169459 by stevelegare
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
);

The topic has been locked.
  • stevelegare
  • stevelegare's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
5 years 10 months ago #169543 by stevelegare
I used list_participants with custom attributes to retrieve the data and then join with tokenID on the other REST call (export_responses)
Code:
$attributes = array("attribute_1", "attribute_2", "attribute_3");
$tabReponses = $myJSONRPCClient->list_participants ($sessionKey, SURVEY_ID, 0, 1000, false, $attributes);
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose