Files
medusa-store/packages/medusa-plugin-twilio-sms/README.md
T
2022-05-20 11:40:57 +03:00

27 lines
631 B
Markdown

# medusa-plugin-twilio-sms
Twilio SMS / Messaging plugin.
Learn more about how you can use this plugin in the [documentaion](https://docs.medusajs.com/add-plugins/twilio-sms).
## Options
```js
{
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!" })
```