Skip to content

boomware/boomware-go

Repository files navigation

Boomware

Go client for boomware API https://boomware.com/docs/en/

Send SMS

// Create a default client
client := boomware.New(<#your token#>)

// Make a sms request
request := new(boomware.SMSRequest) 
request.Number = "+18000000000"
request.Text = "hi!"

// Send sms
response := client.SMS(request)

if response.Err() != nil {
    log.Println("sending sms error", response.Err())
} else {
    log.Println("successfully sent sms, id:", response.ID)
}