smsGateway.Me 当我想使用 API 发送短信时收到此错误

smsGateway.Me I AM GETTING THIS ERROR WHEN I WANT TO SEND SMS USING API

我想使用 smsgateway.me API 发送短信,但我收到的回复是:

{"response":false,"status":0}

这是我的代码:

include "smsGateway.php";
$smsGateway = new SmsGateway('xxxxxx@xxxxxxx.com', 'xxxxxx');
$deviceID = xxxxx;
$number = '+92xxxxxxxxxx';
$message = 'Hello World!';
$options = [
    'send_at' => strtotime('+1 minutes'), // Send the message in 10 minutes
    'expires_at' => strtotime('+1 hour') // Cancel the message in 1 hour if the message is not yet sent
];

$result = $smsGateway->sendMessageToNumber($number, $message, $deviceID, $options);
echo json_encode($result);

请验证您的主机是否启用了 cURL