An easy-to-use netgsm.com.tr API with golang
go get github.com/ozgur-yalcin/netgsm.go
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))
}