/verimor.go

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

Primary LanguageGoMIT LicenseMIT

license documentation

Verimor.go

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

Installation

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

Usage

package main

import (
	"fmt"

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

func main() {
	api := new(verimor.API)
	request := verimor.Request{}
	request.Username = "Kullanıcı adı"
	request.Password = "Şifre"
	request.Source = "BASLIK"

	message := new(verimor.Message)
	message.Msg = "test"
	message.No = "905555555555"
	request.Messages = append(request.Messages, message)

	send := api.Sms(request)
	if send {
		fmt.Println("mesaj iletildi")
	} else {
		fmt.Println("hata oluştu")
	}
}