RPC-JSON a new remotecontrol call

1 year 3 months ago - 1 year 3 months 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: 1 year 3 months ago by pavakian.

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
1 year 2 months 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 .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!