A Java 8 client for using the Limesurvey Remote Control
This library uses Java 8 and streams, it provides predefined methods for using Remote Control from your Limesurvey instance.
This project use Maven and can be build doing :
mvn clean install
Then you can add the jar to your project.
This project is on Maven Central, you just have to add the dependency to your pom.xml
<dependency>
<groupId>com.github.falydoor</groupId>
<artifactId>limesurvey-rc</artifactId>
<version>0.7</version>
</dependency>
Simply create a new LimesurveyRC object by passing the correct credentials
LimesurveyRC limesurveyRC = new LimesurveyRC("remoteControlUrl", "user", "password");
And then you can start calling methods directly on your LimesurveyRC object.
Example:
// Display the title of all your active surveys
limesurveyRC.getActiveSurveys().forEach(survey -> System.out.println(survey.getTitle()));
By default, the key timeout is set to 2 hours (7200 seconds). If the value of "iSessionExpirationTime" in your config-defaults.php is different, you have to set it using the method "setKeyTimeout" after creating your LimesurveyRC instance.