Skip to content

PuzzelSolutions/smsgw-client-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build status

Travis: Build Status

Installation

go get github.com/intelecom/smsgw-client-go

or by importing it into a project

import "github.com/intelecom/smsgw-client-go"

Example usage

// Initialize the client
gatewayClient := smsgwclient.MakeSmsGatewayClient(baseURL, serviceID, username, password)

// Single recipient, 0 NOK
message := smsgwclient.Message{Recipient: "+47XXXXXXXX",Content:"This is a test"}
messages := []smsgwclient.Message{message}

if resp, err := gatewayClient.Send(messages); err != nil {
	log.Println("error:", err)
} else {
	log.Println("resp:", resp)
}

About

Go client library for Puzzel SMS Gateway

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages