Skip to content
This repository has been archived by the owner on Nov 12, 2019. It is now read-only.

omsable/microservice-twilio

Repository files navigation

Twilio OMG Microservice (GOLANG)

Open Microservice Guide Build Status codecov

An OMG service for Twilio, it allows to send SMS.

Usage in Storyscript

Send SMS
>>> twilio send from:'phoneNumber' to:'phoneNumber' message:'messageText' 
{
  "sid": "sid",
  "account_sid": "account_sid",
  "to": "+914408012345",
  "from": "+17042456341",
  "body": "hello, text message from twilio omg",
  "status": "queued"
}

Curious to learn more?

✨🍰✨

Usage with OMG CLI

Send SMS
$ omg run send -a from=<PHONE_NUMBER> -a to=<PHONE_NUMBER> -a message=<MESSAGE_TEXT_BODY> -e ACCOUNT_SID=<ACCOUNT_SID> -e AUTH_TOKEN=<AUTH_TOKEN>

Note: the OMG CLI requires Docker to be installed.

License

MIT License.