All sent SMS will be displayed as Notification';
}
public function isAvailable()
{
return PiwikDevelopment::isEnabled();
}
public function verifyCredential($apiKey)
{
return true;
}
public function sendSMS($apiKey, $smsText, $phoneNumber, $from)
{
$message = sprintf('An SMS was sent:
From: %s
To: %s
Message: %s', $from, $phoneNumber, $smsText);
$notification = new Notification($message);
$notification->raw = true;
$notification->context = Notification::CONTEXT_INFO;
Notification\Manager::notify('StubbedSMSProvider'.preg_replace('/[^a-z0-9]/', '', $phoneNumber), $notification);
}
public function getCreditLeft($apiKey)
{
return 'Balance: 42';
}
}