- Posts: 19
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Remote Control API ignores plugin
- jlwood
- Topic Author
- Offline
- New Member
Less
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:
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 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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11655
- Thank you received: 2740
2 years 9 months ago #217706
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 19
- Thank you received: 0
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13637
- Thank you received: 2491
2 years 9 months ago #217724
by DenisChenu
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.
Replied by DenisChenu on topic Remote Control API ignores plugin
I stop there …Using LS Version 2.67.3,
Code:…
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.