Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 Feature: Vonage Messages Adapter #82

Open
2 of 4 tasks
stnguyen90 opened this issue May 16, 2024 · 2 comments
Open
2 of 4 tasks

🚀 Feature: Vonage Messages Adapter #82

stnguyen90 opened this issue May 16, 2024 · 2 comments
Assignees

Comments

@stnguyen90
Copy link

stnguyen90 commented May 16, 2024

🔖 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/

@naman1608
Copy link

Hu @stnguyen90, can I have a go at it?

@stnguyen90
Copy link
Author

@naman1608, assigned! Thanks for your interest!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants