netgsm.go

module
v0.0.0-...-45b59b4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2023 License: MIT

README

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))
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL