aliyunsms

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: MIT Imports: 7 Imported by: 0

README

aliyunsms

aliyunsms implements github.com/gopherd/doge/sms.Provider

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(options Options) (*Client, error)

func (*Client) SendCode

func (c *Client) SendCode(phoneNumber, code string) error

SendCode implements sms.Provider SendCode method

type Options

type Options struct {
	Scheme string `json:"scheme"`
	Domain string `json:"domain"`

	Version      string `json:"version"`
	ApiName      string `json:"api_name"`
	AccessKey    string `json:"access_key"`
	AccessSecret string `json:"access_secret"`
	SignName     string `json:"sign_name"`
	TemplateCode string `json:"template_code"`

	RegionId string `json:"region_id"`
}

func (Options) String

func (options Options) String() string

Jump to

Keyboard shortcuts

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