ucp
is a pure Go implementation of the UCP protocol primarily used to connect to short message service centres (SMSCs), in order to send and receive short messages (SMS).
- go 1.11
- git
go get github.com/go-gsm/ucp
opt := &ucp.Options{
Addr: SMSC_ADDR,
User: SMSC_USER,
Password: SMSC_PASSWORD,
AccessCode: SMSC_ACCESSCODE,
}
client := ucp.New(opt)
client.Connect()
defer client.Close()
ids, err := client.Send(sender, receiver, message)