Skip to content

FreeSMS is an API for sending SMS to all operator in Indonesia free of charge.

License

Notifications You must be signed in to change notification settings

tamboto2000/freesms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FreeSMS

Go Reference

FreeSMS is an API for sending SMS to all operator in Indonesia free of charge.

Features

  • Free SMS Sending!
  • Send SMS with proxy

Instalation

FreeSMS require Go v1.14 or up

$ GO111MODULE=on go get github.com/tamboto2000/freesms

Example

package main

import (
	"github.com/tamboto2000/freesms"
)

func main() {
	cl, err := freesms.NewClient()
	if err != nil {
		panic(err.Error())
	}

	// set proxy (optional)
	if err := cl.SetProxy("http://103.157.116.199:8080"); err != nil {
		panic(err.Error())
	}

    // Minimum chars is 15, maximum 122
	if err := cl.SendMsg("08xxxxxxx", "Lorem ipsum dolor sit amet, uuh, and stuff..."); err != nil {
		panic(err.Error())
	}
}

See documentation for more detailed info

License

MIT

About

FreeSMS is an API for sending SMS to all operator in Indonesia free of charge.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages