RemoteControl 2 API in export_responses method json output not getting

Mehr
2 Jahre 1 Monat her - 2 Jahre 1 Monat her #151077 von manavaahuja07
COM_KUNENA_MESSAGE_CREATED_NEW
HI,

I am able to get response of list_groups ,list_questions method.

But when i am getting response of export_responses method i am no getting that response in proper json.

I am getting some response it also looks like my response but i think its in difference format.


HERE is my code http://pastebin.com/PHUf3eAP

and HERE is my out put http://pastebin.com/a6SV2bNS
Last edit: 2 Jahre 1 Monat her by manavaahuja07.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Jahre 1 Monat her #151078 von jelo
COM_KUNENA_MESSAGE_REPLIED_NEW
You still should edit php.ini and change always_populate_raw_post_data' to '-1'.
In XAMPP it is already there, but a ";" is in front of the setting to comment it out.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Jahre 1 Monat her - 2 Jahre 1 Monat her #151079 von manavaahuja07
COM_KUNENA_MESSAGE_REPLIED_NEW
Now My output look like this http://pastebin.com/z60Ratja

Still JSON is same as eralier...:( :(
Last edit: 2 Jahre 1 Monat her by manavaahuja07.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Jahre 1 Monat her #151083 von jelo
COM_KUNENA_MESSAGE_REPLIED_NEW
Is the survey activated and has some responses?
Personally I don't use the API via Java, but I would add the optional parameters and don't leave them empty. Perhaps it is a bug in the API.

You will have to play a bit with it. Perhaps use CSV to test if it is working at all.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Jahre 1 Monat her - 2 Jahre 1 Monat her #151084 von manavaahuja07
COM_KUNENA_MESSAGE_REPLIED_NEW
YES survey is active and response ID is also correct.
I just tried with all the parameters then also result is same...

post.setEntity(new StringEntity("{\"method\": \"export_responses\", \"params\": "+ "[ \"" + sessionKey + "\" , \"289946\" , \"csv\" , \"en\" , \"all\" , \"full\" , \"long\", \"62\" , \"62\"], \"id\": 60}"));
Last edit: 2 Jahre 1 Monat her by manavaahuja07.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Jahre 1 Monat her #151086 von manavaahuja07
COM_KUNENA_MESSAGE_REPLIED_NEW
Thanx jelo

i am getting the output as i want it is base 64-encode string so its giving that type of things....;)

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Jahre 1 Monat her #151171 von DenisChenu
COM_KUNENA_MESSAGE_REPLIED_NEW
Yep, base64 :).

Else i make a short snippet for json export responses : framagit.org/SondagePro-LimeSurvey-plugi...Control/snippets/403

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Jahre 3 Wochen her #151804 von manavaahuja07
COM_KUNENA_MESSAGE_REPLIED_NEW
Thanx for this PHP code.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha