Welcome to the LimeSurvey Community Forum

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

Export respose method gives base64 encoded string.

  • ITAS_MCDA
  • ITAS_MCDA's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 1 month ago #240729 by ITAS_MCDA
Please help us help you and fill where relevant:
Your LimeSurvey version: url=https://itasmcda.limesurvey.net/surveyAdministration/listsurveys#modalSystemInformation]Version 5.6.4[/url
Own server or LimeSurvey hosting: Lime survey hosting
Survey theme/template:
==================
Hi,
I want to retrieve the survey responses (Json format or CSV file) corresponding to each participant.
1)  The Export_responses method gives a base 64 encoded string. How to convert this response to Json format? Or is it possible to export to CSV file?
I am coding in Java. Below is the snippet from postman:
{
 "method": "export_responses",
 "params": [
   "session_key",
   "survey_id",
    "json", 
    null, 
    "all", 
    null, 
    null
 ],
 "id": 2
}

2) Also, when I am trying to get the question list from the survey, the response is not proper although the status is (200 OK).
Below is the method i am using to send request:
{
 "method": "list_questions",
 "params": [
   "session_key",
   "survey_id",
        null,
        null
 ],
 "id": 2
}

Note: api.limesurvey.org/classes/remotecontrol_handle.html is used to implement methods in the above case.

Thanks in advance!

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 1 month ago - 1 year 1 month ago #240739 by tpartner
1) This is a Java question, not a LimeSurvey question - www.google.com/search?client=firefox-b-d&q=java+decode+base64

2) What do you mean by "the response is not proper"?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 1 year 1 month ago by tpartner.

Please Log in to join the conversation.

  • ITAS_MCDA
  • ITAS_MCDA's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 1 month ago - 1 year 1 month ago #240759 by ITAS_MCDA
hank you for the reply!
Below is the response for the method list_questions as mentioned above.
Code:
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
 
Last edit: 1 year 1 month ago by ITAS_MCDA.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose