aliyungo: github.com/denverdino/aliyungo/sms Index | Files

package sms

import "github.com/denverdino/aliyungo/sms"

Index

Package Files

client.go dysms.go sms.go

Constants

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

type Client Uses

type Client struct {
    common.Client
}

func NewClient Uses

func NewClient(accessKeyId, accessKeySecret string) *Client

func (*Client) SingleSendSms Uses

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

type DYSmsClient Uses

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

func NewDYSmsClient Uses

func NewDYSmsClient(accessKeyId, accessKeySecret string) *DYSmsClient

func (*DYSmsClient) QuerySms Uses

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

func (*DYSmsClient) SendSms Uses

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

type QuerySmsArgs Uses

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

type QuerySmsResponse Uses

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

type SendSmsArgs Uses

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

阿里云通信

type SendSmsResponse Uses

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

type SingleSendSmsArgs Uses

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

邮件推送产品短信功能

type SmsSendDetailDTOsItem Uses

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

Package sms imports 2 packages (graph) and is imported by 1 packages. Updated 2018-05-26. Refresh now. Tools for package owners.