RPC-JSON a new remotecontrol call

More
11 months 12 hours ago - 11 months 12 hours 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!");
return;
}
//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.

Regards
Last edit: 11 months 12 hours ago by pavakian.

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

LimeSurvey Partners
More
10 months 3 weeks 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 (or search sondages pro).
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!