Skip to content

NaySoftware/go-sms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go-sms

SMS Library for telemessage service - Golang

for more info : http://developer.telemessage.com/REST/

Example

package main

import (
	"github.com/NaySoftware/go-sms"
	"fmt"
)


func main() {

	client := telemsg.NewClient("username","password")
	client.NewMsg("+123456789", "Hello World")
	status, err := client.Send()
	if err != nil {
		fmt.Println(err)
	} else {
		fmt.Println(status.ResultDescription)
	}

}

For Multiple Recipients

	list := []string {
		"+123456789",
		"+123456789",
	}

	client := telemsg.NewClient("username","password")
	client.NewMsg("+1234", "Hello World")


	client.AddRecipients(list)


	status, err := client.Send()
	if err != nil {
		fmt.Println(err)
	} else {
		fmt.Println(status.ResultDescription)
	}

About

SMS Library for telemessage service using Golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages