Welcome to the LimeSurvey Community Forum

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

RPC-JSON a new remotecontrol call

  • pavakian
  • pavakian's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 10 months ago - 5 years 10 months ago #169012 by pavakian
RPC-JSON a new remotecontrol call was created 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: 5 years 10 months ago by pavakian.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 10 months ago #169290 by DenisChenu
Replied by DenisChenu on topic RPC-JSON a new remotecontrol call

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