unifonic_sms
4 sites
Security covered
Synopsis
The Unifonic SMS module provides seamless integration with Unifonic's Messages API, enabling your Drupal website to send SMS notifications efficiently. Whether you're sending individual messages, bulk SMS, or implementing One-Time Password (OTP) functionality, this module simplifies the process.
Unifonic allows
✔ Send SMS notifications to users.
✔ Dispatch bulk messages with ease.
✔ Utilize the OTP feature for authentication and verification
Module Setup
Follow these steps to configure and start using the module:
- Create a Unifonic account – Sign up for a free demo.
- Download and install the module.
- Enable the module in your Drupal installation.
- Configure your AppSid at:
- Administration → Configuration → System → Unifonic Messages (/admin/config/system/unifonic-messages).
- Start sending messages by calling the Unifonic service with the recipient and message body.
Usage Example
To send an SMS, use the following service call in your custom module or script:
$request = \Drupal::service('unifonic_sms.messages')->send([
'body' => 'Text goes here',
'recipient' => '9627xxxxxxxx',
'senderID' => 'Your sender ID',
'priority' => 'high',
'timeScheduled' => '2020-01-09 05:35:01'
]);For additional examples and advanced configurations, refer to the README.md file.