sms

package
v0.0.0-...-766f525 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

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"
	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) SendSms

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

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
}

邮件推送产品短信功能

Jump to

Keyboard shortcuts

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