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 = "https://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