Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 882 Bytes

README.md

File metadata and controls

44 lines (31 loc) · 882 Bytes

Build Status js-standard-style

tilnefna

Service for nominating people for something

API

POST /api/nominate

{
  name: 'Geir',
  mobile: '1726347',
  nomineeName: 'Jonas',
  nomineeMobile: '1983645'
}
$ curl http://localhost:3000/api/nominate -d '{"name": "Geir", "mobile":"87654", "nomineeName":"Jonas", "nomineeMobile":"1928273"}'

POST /api/message

{
  mobile: '1726347',
  message: 'You rock!'
}
$ curl http://localhost:3000/api/message -d '{"mobile":"87654", "message":"You rock!"}'

POST /api/{WEBHOOK_TOKEN}/confirm

Setup

License

MIT