Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.18 KB

README.md

File metadata and controls

37 lines (27 loc) · 1.18 KB

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