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?