====== BulkSMS with the Custom Dev Kit ======
This page explains the necessary steps to integrate BulkSMS API gateway into Layer's PVS Module using the Custom Dev Kit.
===== Please Remember =====
* $phone variable will be automatically supplied, and contains the customer's phone number
* $code variable will be automatically supplied, and contains a 4 digit code
===== The Steps =====
* Download the file below, or from [[https://layer.ae/wiki/doku.php?do=export_code&id=pvs:customdevkit_bulksms&codeblock=0|here]]
* Replace the authorization header - go to https://www.bulksms.com/account/#!/advanced-settings/api-tokens and generate a new token and paste the basic auth here
* Overwrite the file customdevkit.php in the module's directory
* Go to Setup -> Addon Modules in WHMCS Admin
* Click on Configure for Phone Verification System
* Change the verification API to CustomDevKit
* Save
===== File =====
The file below shows BulkSMS integrated using the Custom Dev Kit. [[https://layer.ae/wiki/doku.php?do=export_code&id=pvs:customdevkit_bulksms&codeblock=0|Click here to download]]
$phone,
'body' => $body,
)
)
);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
curl_close($ch);
#log the attempt to help troubleshoot
logModuleCall("myrskpvs","customdevkit-sms",$ch,$response);
?>