🔖 Feature description
The current Vonage SMS adapter uses the SMS API:
|
$result = $this->request( |
|
method: 'POST', |
|
url: 'https://rest.nexmo.com/sms/json', |
|
headers: [ |
|
'Content-Type' => 'application/x-www-form-urlencoded', |
|
], |
|
body: [ |
|
'text' => $message->getContent(), |
|
'from' => $this->from ?? $message->getFrom(), |
|
'to' => $to[0], //\implode(',', $to), |
|
'api_key' => $this->apiKey, |
|
'api_secret' => $this->apiSecret, |
|
], |
|
); |
However, we should add support for the Messages API.
Reference:
🎤 Pitch
The SMS API is limited to SMS and is more expensive than their Messages API1
📝 Tasks
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
🔖 Feature description
The current Vonage SMS adapter uses the SMS API:
messaging/src/Utopia/Messaging/Adapter/SMS/Vonage.php
Lines 48 to 61 in b499c3a
However, we should add support for the Messages API.
Reference:
🎤 Pitch
The SMS API is limited to SMS and is more expensive than their Messages API1
📝 Tasks
Utopia\Messaging\Adapter\VonageMessagesBasethat handles the common things between the different message typesUtopia\Messaging\Adapter\SMS\VonageMessagesthat can send SMS messages using the Vonage Messages API👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
Footnotes
https://www.vonage.com/communications-apis/pricing/ ↩