msg91

package
v0.0.0-...-3e1c22f Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendMessage

func SendMessage(message string, transactionSms bool, mobileNos ...string) (bool, error)

SendMessage send a text/sms via msg91

Types

type Msg91

type Msg91 struct {
	AuthKey    string
	SenderName string
}

Msg91 msg91.com sms API provider

func NewMsg91

func NewMsg91(Authkey string, Sender string) *Msg91

NewMsg91 creates new instance of auth key

func (*Msg91) SendOTP

func (m *Msg91) SendOTP() (string, error)

SendOTP sends a random OTP

func (*Msg91) VerifyOTP

func (m *Msg91) VerifyOTP() (bool, error)

VerifyOTP Verifies the OTP

Jump to

Keyboard shortcuts

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