MessageBird 短信未发送 (php)

MessageBird sms not sending (php)

我一直在尝试使用 MessageBird PHP 发送 SMS 消息。目前我没有收到任何错误消息,但我的 phone 上没有收到消息,但我可以看到我的免费 SMS 积分被扣除了。

<?php

    require('header.php');
    require 'php-rest-api-master/autoload.php';   

    $client = new \MessageBird\Client('YOUR_ACCESS_KEY'); // Access key goes here

    $message = new \MessageBird\Objects\Message();
    $message->originator = 'Test';
    $message->recipients = ['YOUR_PHONE_NUMBER'];
    $message->body = 'Hello, your meeting request has been processed';

    try{
        $response = $client->messages->create($message);
    } catch (Exception $e){
        echo $e->getMessage();
    }

    require('footer.php');

?>

我想知道我是否遗漏了什么?

调试的一个选项是检查仪表板中的 SMS 日志。

https://developers.messagebird.com/quickstarts/sms/troubleshooting/