feat(plugins): Adds Twilio SMS plugin

This commit is contained in:
Oliver Windall Juhl authored and GitHub committed 2020-09-09 10:52:58 +02:00
1 parent cd39798b4b
commit 35a91ae6a1
11 files changed
+6008

No files matched your search

@@ -0,0 +1,24 @@
# medusa-plugin-sendgrid
Twilio SMS / Messaging plugin.
## Plugin Options
```
{
account_sid: [twilio messaging account sid] (required),
auth_token: [twilio massaging authentication token] (required),
from_number: [the number used as sender SMS],
}
```
## Dynamic usage
You can resolve the Twilio SMS service to dynamically send SMS's via Twilio.
Example:
```js
const twilioSmsService = scope.resolve("twilioSmsService")
twilioSmsService.sendSms({ to: "+4500112233", body: "Hello world!" })
```