Skip to content

go-gsm/ucp

Repository files navigation

Build Status GoDoc Coverage StatusGo Report Card

ucp

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).

setup

  • go 1.11
  • git

installation

go get github.com/go-gsm/ucp

usage

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)

demo

ucp-cli

demo