sms

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SMS

type SMS struct {
	// contains filtered or unexported fields
}

func New

func New(sigName string, templateCode string, accessKeyID string, accessKeySecret string, endpoint string) *SMS

func (*SMS) SendSMS

func (s *SMS) SendSMS(phone, code string) (*dysmsapi.SendSmsResponse, error)

type TemplateParam

type TemplateParam struct {
	Code string `json:"code"`
}

func (TemplateParam) String

func (t TemplateParam) String() string

Jump to

Keyboard shortcuts

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