- Posts: 14
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
RemoteControl 2 API in export_responses method json output not getting
- manavaahuja07
- Topic Author
- Offline
- New Member
Less
More
7 years 4 weeks ago - 7 years 4 weeks ago #151077
by manavaahuja07
RemoteControl 2 API in export_responses method json output not getting was created by manavaahuja07
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 pastebin.com/PHUf3eAP
and HERE is my out put pastebin.com/a6SV2bNS
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 pastebin.com/PHUf3eAP
and HERE is my out put pastebin.com/a6SV2bNS
Last edit: 7 years 4 weeks ago by manavaahuja07.
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
7 years 4 weeks ago #151078
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic RemoteControl 2 API in export_responses method json output not getting
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.
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
The topic has been locked.
- manavaahuja07
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 1
7 years 4 weeks ago - 7 years 4 weeks ago #151079
by manavaahuja07
Replied by manavaahuja07 on topic RemoteControl 2 API in export_responses method json output not getting
Last edit: 7 years 4 weeks ago by manavaahuja07.
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
7 years 4 weeks ago #151083
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic RemoteControl 2 API in export_responses method json output not getting
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.
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
The topic has been locked.
- manavaahuja07
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 1
7 years 4 weeks ago - 7 years 4 weeks ago #151084
by manavaahuja07
Replied by manavaahuja07 on topic RemoteControl 2 API in export_responses method json output not getting
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}"));
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: 7 years 4 weeks ago by manavaahuja07.
The topic has been locked.
- manavaahuja07
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 1
7 years 4 weeks ago #151086
by manavaahuja07
Replied by manavaahuja07 on topic RemoteControl 2 API in export_responses method json output not getting
Thanx jelo
i am getting the output as i want it is base 64-encode string so its giving that type of things....
i am getting the output as i want it is base 64-encode string so its giving that type of things....
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
7 years 3 weeks ago #151171
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic RemoteControl 2 API in export_responses method json output not getting
Yep, base64 .
Else i make a short snippet for json export responses : framagit.org/SondagePro-LimeSurvey-plugi...Control/snippets/403
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 , plugin development .
I don't answer to private message.
The topic has been locked.
- manavaahuja07
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 1
7 years 3 weeks ago #151804
by manavaahuja07
Replied by manavaahuja07 on topic RemoteControl 2 API in export_responses method json output not getting
Thanx for this PHP code.
The topic has been locked.