Welcome to the LimeSurvey Community Forum

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

Remote Control API ignores plugin

  • jlwood
  • jlwood's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 10 months ago #217563 by jlwood
Remote Control API ignores plugin was created by jlwood
Using LS Version 2.67.3, I've been using a plugin to deliver invitations via SMS. It works as expected through the regular interface. I recently needed a remote control option to trigger invitation delivery. All went well EXCEPT messages arrive via email instead of SMS.

the plugin's init function looks like this:
Code:
public function init() {
// Settings to display errors for better debugging
   ini_set('display_errors', 1);
   ini_set('display_startup_errors', 1); error_reporting(E_ALL);
  $this->subscribe('beforeTokenEmail');
  $this->subscribe('beforeSurveySettings');
  $this->subscribe('newSurveySettings'); }


and the Remote Control line that sends the invites is pretty simple:
$response=$lsJSONRPCClient->invite_participants($sSessionKey, $iSurveyID);

The invitations arrive, but not via SMS as they do when sent through the regular interface. What am I missing?
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 9 months ago #217706 by holch
Replied by holch on topic Remote Control API ignores plugin
I think you will need to contact the developer of the plugin that is delivering the invitations via SMS.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • jlwood
  • jlwood's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 9 months ago #217707 by jlwood
Replied by jlwood on topic Remote Control API ignores plugin
I've expiremented some and it appears as though the beforeTokenEmail event is never executed when invite_participants is executed via remote control. Can anyone confirm this behavior?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 9 months ago #217724 by DenisChenu
Replied by DenisChenu on topic Remote Control API ignores plugin

Using LS Version 2.67.3,
Code:
 
I stop there …

You already have a plugin ? Then : you can hack code or update …

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