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

telemark/micro-sms

Repository files navigation

Build Status js-standard-style

micro-sms

Microservice for sending sms

API

All calls must supply a valid jwt

POST /sms

Send sms

{
  sender: '<name-or-number>',
  receivers: ['number1', 'number2'],
  message: '<message>',
  operation: 9 // Optional
}
$ curl -v -H "Authorization: <INSERT TOKEN>" -H "Content-Type: application/json" -d '{ "sender": "aBook", "receivers": ["+4798765432"], "message": "Do you read me?" }' https://sms.service.io/sms

Development

Requires the ZEIT/Now cli

$ now dev

Deploy to ZEIT/Now - Manual

Setup now.json for your environment.

Run the deploy script.

$ npm run deploy

Deploy to ZEIT/Now - Automatic

Configure GitHub action for your environment.

Do a release.

License

MIT