sms

package
v0.0.0-...-ab98a91 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 2 Imported by: 7

README

#ALI SMS sms中包含了sms与dysms两套API。sms为早期的"邮件推送产品短信功能",dysms为"阿里云云通信产品"(包含原阿里大于用户)。 两套API互不相通,请根据自己的账户情况使用。 目前阿里已将短信业务集成至MNS中,推荐使用MNS来管理短信。

Documentation

Index

Constants

View Source
const (
	DYSmsEndPoint   = "https://dysmsapi.aliyuncs.com/"
	SendSms         = "SendSms"
	QuerySms        = "QuerySendDetails"
	DYSmsAPIVersion = "2017-05-25"

	SmsEndPoint   = "https://sms.aliyuncs.com/"
	SingleSendSms = "SingleSendSms"
	SmsAPIVersion = "2016-09-27"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(accessKeyId, accessKeySecret string) *Client

func (*Client) SingleSendSms

func (this *Client) SingleSendSms(args *SingleSendSmsArgs) error

type DYSmsClient

type DYSmsClient struct {
	common.Client
	Region common.Region
}

func NewDYSmsClient

func NewDYSmsClient(accessKeyId, accessKeySecret string) *DYSmsClient

func (*DYSmsClient) QuerySms

func (this *DYSmsClient) QuerySms(args *QuerySmsArgs) (*QuerySmsResponse, error)

func (*DYSmsClient) SendSms

func (this *DYSmsClient) SendSms(args *SendSmsArgs) (*SendSmsResponse, error)

type QuerySmsArgs

type QuerySmsArgs struct {
	PhoneNumber string
	BizId       string
	SendDate    string
	PageSize    string
	CurrentPage string
}

type QuerySmsResponse

type QuerySmsResponse struct {
	common.Response
	Code              string
	Message           string
	TotalCount        int
	TotalPage         string
	SmsSendDetailDTOs struct {
		SmsSendDetailDTO []SmsSendDetailDTOsItem
	}
}

type SendSmsArgs

type SendSmsArgs struct {
	PhoneNumbers    string
	SignName        string
	TemplateCode    string
	TemplateParam   string
	SmsUpExtendCode string `ArgName:"smsUpExtendCode"`
	OutId           string
}

阿里云通信

type SendSmsResponse

type SendSmsResponse struct {
	common.Response
	Code    string
	Message string
	BizId   string
}

type SingleSendSmsArgs

type SingleSendSmsArgs struct {
	SignName     string
	TemplateCode string
	RecNum       string
	ParamString  string
}

邮件推送产品短信功能

type SmsSendDetailDTOsItem

type SmsSendDetailDTOsItem struct {
	PhoneNum     string
	SendStatus   int
	ErrCode      string
	TemplateCode string
	Content      string
	SendDate     string
	ReceiveDate  string
	OutId        string
}

Jump to

Keyboard shortcuts

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