Skip to content

feat: geosms adapter - #64

Merged
abnegate merged 18 commits into
mainfrom
feat-geosms-adapter
Nov 10, 2023
Merged

feat: geosms adapter#64
abnegate merged 18 commits into
mainfrom
feat-geosms-adapter

Conversation

@loks0n

Copy link
Copy Markdown
Contributor

GEO aware SMS adapter that has Twilio as a global default but can also delegate work to local providers.

$sms = new GEOSMS(new Twilio(...)); // Twilio as default fallback
$sms
->setLocal('+91', new MSG91())
->setLocal('+44', new Vodafone())

$this->assertEquals($response, '');
*/

$this->markTestSkipped('Sendgrid: Authenticated user is not authorized to send mail');

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to fix our Sendgrid setup

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@christyjacob4 Do we have a team test account set up for Sendgrid? I think tests here are still using a personal account

Comment threadtests/e2e/SMS/Msg91Test.php Outdated
// $this->assertEquals('success', $result['type']);

$this->markTestSkipped('Msg91 requires business verification to use template and SMS api.');
$this->assertEquals('success', $result['type']);

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is fixed now we are verified

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://api.msg91.com/apidoc/textsms/send-sms-flow.php
I removed this check since the message property is not really the content instead some sort of an ID that we cannot use for assertion

Comment threadsrc/Utopia/Messaging/Adapters/SMS/GEOSMS.php
@loks0n
loks0n requested a review from eldadfuxNovember 7, 2023 15:08
Comment threadsrc/Utopia/Messaging/Adapters/SMS/GEOSMS.php Outdated
Comment threadsrc/Utopia/Messaging/Adapters/SMS/GEOSMS.php Outdated
Comment threadsrc/Utopia/Messaging/Adapters/SMS/GEOSMS.php Outdated
Comment threadsrc/Utopia/Messaging/Adapters/SMS/GEOSMS.php Outdated
Comment threadsrc/Utopia/Messaging/Adapters/SMS/GEOSMS.php Outdated
Comment threadsrc/Utopia/Messaging/Adapters/SMS/GEOSMS.php Outdated
Comment threadsrc/Utopia/Messaging/Adapters/SMS/GEOSMS.php Outdated
Comment threadsrc/Utopia/Messaging/Adapters/SMS/GEOSMS.php
Comment threadsrc/Utopia/Messaging/Adapters/SMS/GEOSMS.php Outdated
$this->assertEquals($response, '');
*/

$this->markTestSkipped('Sendgrid: Authenticated user is not authorized to send mail');

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@christyjacob4 Do we have a team test account set up for Sendgrid? I think tests here are still using a personal account

Comment threadsrc/Utopia/Messaging/Adapters/SMS/GEOSMS.php Outdated
Comment threadsrc/Utopia/Messaging/Adapters/SMS/GEOSMS.php Outdated
@abnegate
abnegate merged commit 8ba50f7 into mainNov 10, 2023
@abnegate
abnegate deleted the feat-geosms-adapter branch November 10, 2023 03:26
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@loks0n@eldadfux@stnguyen90@abnegate@christyjacob4