aliyun

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const EndpointFormat = "JSON"
View Source
const EndpointMethod = "SendSms"
View Source
const EndpointRegionId = "cn-hangzhou"
View Source
const EndpointSignatureMethod = "HMAC-SHA1"
View Source
const EndpointSignatureVersion = "1.0"
View Source
const EndpointUrl = "http://dysmsapi.aliyuncs.com"
View Source
const EndpointVersion = "2017-05-25"
View Source
const NAME = "aliyun"
View Source
const OK = "OK"

Variables

This section is empty.

Functions

This section is empty.

Types

type Gateway

type Gateway struct {
	AccessKeyId     string
	AccessKeySecret string
	SignName        string
}

func (*Gateway) Name

func (g *Gateway) Name() string

func (*Gateway) Send

func (g *Gateway) Send(to *gsms.PhoneNumber, message gsms.Message, config *gsms.Config) error

type SendSmsResponse added in v1.1.0

type SendSmsResponse struct {
	Code      string `json:"Code"`
	Message   string `json:"Message"`
	BizId     string `json:"BizId"`
	RequestId string `json:"RequestId"`
}

SendSmsResponse https://help.aliyun.com/document_detail/419273.htm?spm=a2c4g.11186623.0.0.4a0879bebUrJyq#api-detail-40

Jump to

Keyboard shortcuts

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