Welcome to the LimeSurvey Community Forum

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

RPC-JSON a new remotecontrol call

5 years 2 weeks ago - 5 years 2 weeks ago #169012 by pavakian
I would like to create a new remotcontrol call to stop a survey and then either {Expire or Deactive}
For the survey activation I am using java call something like the below.

public static void main(String[] args) {
try {
DefaultHttpClient client = new DefaultHttpClient();
String remoteURL = "http://limetest/survey/index.php/admin/remotecontrol";
HttpPost post = new HttpPost(remoteURL);
post.setHeader("Content-type", "application/json");

String sessionKey = getSessionKey(client, post);
if(sessionKey == null) {
System.out.println("No session key found!");
//activate survey
StringEntity se = new StringEntity("{\"method\": \"activate_survey\", \"params\": [ \""+sessionKey+"\",\"123456\"], \"id\":\"1\"}");

Can somebody provide some insight how to create a new remotecontrol RPC_JSON call similar to activate_surve

Appreciate the help.

Last edit: 5 years 2 weeks ago by pavakian.
The topic has been locked.
5 years 6 days ago #169290 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.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose