Skip to content

ozgur-yalcin/netgsm.go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

license documentation

Netgsm.go

An easy-to-use netgsm.com.tr API with golang

Installation

go get github.com/ozgur-yalcin/netgsm.go

Usage

package main

import (
	"encoding/xml"
	"fmt"

	netgsm "github.com/ozgur-yalcin/netgsm.go/src"
)

func main() {
	api, req := netgsm.Api("header", "username", "password")
	req.Body.Msg = "test"
	req.Body.No = "905555555555"
	res := api.Sms(req) // Normal sms
	// res := api.Otp(req) // Hızlı sms
	pretty, _ := xml.MarshalIndent(res, " ", " ")
	fmt.Println(string(pretty))
}

About

An easy-to-use netgsm.com.tr API with golang

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages