A simple API that accepts SMS messages submitted via a POST request. Uses the MessageBird API to sent proper SMS messages. It parrots the Concatenated SMS functionality by splitting long messages (>160 characters) into parts and setting the correct message headers.
go get...
&go install
- Create an account on MessageBird. Make a note your API key.
- Create your
config.json
based on theconfig_example.json
file, and add your API key there. - Run the server by executing the Go binary.
- The default API endpoint will be available at:
http://127.0.0.1:8000
Example JSON payload, using valid phone numbers, given as strings:
{
"recipient": "123",
"originator": "123",
"message": "Hello, stranger!"
}