Describe the Bug
Nexmo has been aqcuired by Vonage and the old code no longer works.
To Reproduce
Try to send a test SMS with Nexmo credentials.
Expected behavior
SMS should be sent.
Actual behavior
SMS is not sent.
Screenshots
No response
Gibbon version
v25
Browser
No response
Browser Version
No response
Additional Context
According to the Vonage API guide:
composer require vonage/client
$basic = new \Vonage\Client\Credentials\Basic("457ef234", "SHqUvS3ujQ21wwAAT");
$client = new \Vonage\Client($basic);
$response = $client->sms()->send(
new \Vonage\SMS\Message\SMS("15413261278", BRAND_NAME, 'A text message sent using the Nexmo SMS API')
);
$message = $response->current();
if ($message->getStatus() == 0) {
echo "The message was sent successfully\n";
} else {
echo "The message failed with status: " . $message->getStatus() . "\n";
}
Where "457ef234" and "SHqUvS3ujQ21wwAAT" are the API key and API secret respectively.
And "15413261278" is the receving number.
Describe the Bug
Nexmo has been aqcuired by Vonage and the old code no longer works.
To Reproduce
Try to send a test SMS with Nexmo credentials.
Expected behavior
SMS should be sent.
Actual behavior
SMS is not sent.
Screenshots
No response
Gibbon version
v25
Browser
No response
Browser Version
No response
Additional Context
According to the Vonage API guide:
Where "457ef234" and "SHqUvS3ujQ21wwAAT" are the API key and API secret respectively.
And "15413261278" is the receving number.