Demo plugin to show how to extend remote control in API
- Go to your LimeSurvey Directory (version up to 2.06)
- Clone in plugins/extendRemoteControl directory
- Get the file and uncompress it
- Move the file included to plugins/extendRemoteControl directory
To allow plugin to be called via RPC POST routine, you need to disable CsrfValidation for plugins/direct'. This can be done in application/config/config.php.
'components' => array(
'db' => array(
[...]
),
'request' => array(
'class'=>'LSHttpRequest',
'noCsrfValidationRoutes'=>array(
'remotecontrol',
'plugins/direct'
),
[...]
),
The plugin can be used with newUnsecureRequest event
This plugin extend LimeSurvey RemoteControl 2 API. New function are added to LimeSurvey API with the new url created by the plugin.
You can call the new function with the link shown in plugin settings. If you publish API in LimeSurvey core config : another url is show where you can see all available function (the new one and the other from LimeSurvey core).
Since authentification and get_session_key
is the same function, you can create the session key with the core remote control url and use it in the plugin remote control url. This allow different plugin with different function, using same control key.
This plugin was tested only with JSON-RPC.
- HomePage http://extensions.sondages.pro/extendremotecontrol/
- Copyright © 2015-2021 Denis Chenu http://sondages.pro
- Licence : GNU General Public License https://www.gnu.org/licenses/gpl-3.0.html
- Issues https://gitlab.com/SondagesPro/RemoteControl/extendRemoteControl/issues
- Professional support http://extensions.sondages.pro/1