sms

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 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 Config added in v0.7.0

type Config struct {
	AccessKeyID     string
	AccessKeySecret string
	Endpoint        string

	SigName      string
	TemplateCode string
}

type SMS

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

func New

func New(c Config) *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