Remote Control API ignores plugin

More
5 months 2 weeks ago #217563 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:
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?

Please Log in to join the conversation.

More
5 months 1 week ago #217706 by holch
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

Please Log in to join the conversation.

More
5 months 1 week ago #217707 by jlwood
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?

Please Log in to join the conversation.

More
5 months 1 week ago #217724 by DenisChenu

Using LS Version 2.67.3,
 

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.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now