Skip to content

A simple Go API that "parrots" your requests to the MessageBird API.

Notifications You must be signed in to change notification settings

kibernick/parrot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

parrot

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.

Installation

  1. go get... & go install
  2. Create an account on MessageBird. Make a note your API key.
  3. Create your config.json based on the config_example.json file, and add your API key there.
  4. Run the server by executing the Go binary.
  5. The default API endpoint will be available at: http://127.0.0.1:8000

Usage

Example JSON payload, using valid phone numbers, given as strings:

{
    "recipient": "123",
    "originator": "123",
    "message": "Hello, stranger!"
}

About

A simple Go API that "parrots" your requests to the MessageBird API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages