go-pixie is a simple Go wrapper for the Pixie SMS API.
go get github.com/MjukBiltvatt/go-pixie
import "github.com/MjukBiltvatt/go-pixie"
- Multiple phone numbers in
to
should be separated with a comma (,
) - For a newline in
message
, use\n
//Create a new Client
px := pixie.New("username", "password")
//Set a standard country code (not required, but if the first character of the phone number is `0` an error is returned otherwise)
px.StandardCountryCode = "+46"
//Send the SMS
err := px.Send("sender", "to", "message")
if err != nil {
//Handle error
}