Skip to content

🚀 Feature: Vonage Messages Adapter #82

Description

@stnguyen90

🔖 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

image

📝 Tasks

  • Create Utopia\Messaging\Adapter\VonageMessagesBase that handles the common things between the different message types
  • Create Utopia\Messaging\Adapter\SMS\VonageMessages that can send SMS messages using the Vonage Messages API

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Footnotes

  1. https://www.vonage.com/communications-apis/pricing/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions