Hi to all,
I've just start to write a PHP page to make a custom elaboration page.
I have enabled the API, and I 'm able to get some information, like the array with the survey list ( list_surveys ) and some other option, but when I try to get the responses ( and also a single resoults by token ) I have some problem.
I'm using CSV as documentType in export_responses_by_token and I would like to receive a "string" like the one generated by the "default" export function of Limesurvey, but the results it's a string without any "Separator", no code of the questionID or something that is "usable"
the output of my export PHP API is like:
Code:
ImlkIiwic3VibWl0ZGF0ZSIsImxhc3RwYWdlIiwic3RhcnRsYW5ndWFnZSIsInRva2VuIiwiQU5BRzEiLCJBTkFHMiIsIlEwMVtTUTAwMV0iLCJRMDFbU1EwMDJdIiwiUTAxW1NRMDAzXSIsIlEwMltTUTAwMV0iLCJRMDJbU1EwMDJdIiwiUTAyW1NRMDAzXSIsIlEwM1tTUTAwMV0iLCJRMDNbU1EwMDJdIiwiUTAzW1NRMDAzXSIsIlEwNFtTUTAwMV0iLCJRMDRbU1EwMDJdIiwiUTA0W1NRMDAzXSIsIlEwNVtTUTAwMV0iLCJRMDVbU1EwMDJdIiwiUTA1W1NRMDAzXSIsIlEwNltTUTAwMV0iLCJRMDZbU1EwMDJdIiwiUTA2W1NRMDAzXSIsIlEwN1tTUTAwMV0iLCJRMDdbU1EwMDJdIiwiUTA3W1NRMDAzXSIsIlEwOFtTUTAwMV0iLCJRMDhbU1EwMDJdIiwiUTA4W1NRMDAzXSIsIlEwOVtTUTAwMV0iLCJRMDlbU1EwMDJdIiwiUTA5W1NRMDAzXSIsIlExMFtTUTAwMV0iLCJRMTBbU1EwMDJdIiwiUTEwW1NRMDAzXSIKIjEwIiwiMTk4MC0wMS0wMSAwMDowMDowMCIsIjMiLCJpdCIsIlN0bWVrUWdGc2pJbDN1MCIsIjE5ODctMDItMTQgMDA6MDA6MDAiLCJNIiwiNCIsIjMiLCIiLCI0IiwiMyIsIiIsIjMiLCI1IiwiIiwiNCIsIiIsIjMiLCI0IiwiIiwiMyIsIjQiLCIiLCIzIiwiMyIsIjQiLCIiLCI1IiwiNCIsIiIsIjQiLCIzIiwiIiwiMyIsIjQiLCIiCgo=
instead of CSV export limesurvey:
Code:
"10","1980-01-01 00:00:00","3","it","StmekQgFsjIl3u0","1987-02-14 00:00:00","M","4","3","","4","3","","3","5","","4","","3","4","","3","4","","3","3","4","","5","4","","4","3","","3","4","","name","name2","email","location","12/05/2016","attribute"