arsmn / go-smsir

Go library for accessing the sms.ir API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-smsir

go-smsir is a Go client library for accessing the sms.ir.

Install

go get -u github.com/arsmn/go-smsir

Usage

import "github.com/arsmn/go-smsir/smsir"

Construct a new smsir client, then use the various services on the client to access different parts of the smsir API. For example:

client := github.NewClient().WithAuthentication("Your API Key", "Your Secret Key")

// send sms with template
req := &smsir.UltraFastSendRequest{
	Mobile:     "xxx",
	TemplateID: "xxx",
	Parameters: []smsir.UltraFastParameter{
		{Key: "xxx", Value: "xxx"},
		{Key: "xxx", Value: "xxx"},
	},
}
_, err := client.Verification.UltraFastSend(context.Background(), req)

About

Go library for accessing the sms.ir API


Languages

Language:Go 100.0%