smplsms

command module
v0.0.0-...-82c9ddd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2016 License: GPL-2.0 Imports: 14 Imported by: 0

README

smplsms

A simple SMS server for sending text SMS messages using an SMS modem.

The modem code is gratefully stolen from haxpax/gosms, and therefore this repo retains the same license (GPLv2). PDU code also gratefully stolen from ivahaev/gosms. :)

Post messages as json

$ curl -v -X POST -d @msg.json http://localhost:8951/api/sms
* Hostname was NOT found in DNS cache
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8951 (#0)
> POST /api/sms HTTP/1.1
> User-Agent: curl/7.35.0
> Host: localhost:8951
> Accept: */*
> Content-Length: 48
> Content-Type: application/x-www-form-urlencoded
> 
* upload completely sent off: 48 out of 48 bytes
< HTTP/1.1 200 OK
< Content-Type: application/json; charset=utf-8
< X-Powered-By: Black Jelly Beans
< Date: Sat, 01 Aug 2015 11:21:16 GMT
< Content-Length: 44
< 
{"message":"message received","status":200}
* Connection #0 to host localhost left intact
$

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL