Documentation ¶
Index ¶
Constants ¶
View Source
const ( GangaoParamSpid = "spid" // 客户代码,不能为空 GangaoParamPwd = "pwd" // 密码,不能为空 GangaoParamId = "id" // 客户短信ID,int64型,用于返回对应回执,保证唯一值 GangaoParamEntityId = "entityid" // 机构ID,int型,可为空 GangaoParamOwnerId = "ownerid" // 用户ID,int型,可为空 GangaoParamMobiles = "mobiles" // 手机号码列表,不能为空,长度不限制,多个手机号码用英文逗号分隔 GangaoParamSms = "sms" // 短信内容,不能为空,最大支持700字节,内容进行Base64编码,再URLENCODE编码 GangaoParamExt = "ext" // 特服号扩展码,数字,可为空,不要超过6位 GangaoParamPri = "pri" // 发送优先级别,0-9,数字越大越优先发送 GangaoParamChannel = "channel" // 通道代码,可为空 GangaoParamSeq = "seq" // 流水号,int64型,要求唯一值,预防重复发送。如果不用,可为空 )
Variables ¶
This section is empty.
Functions ¶
func CreateClient ¶
func CreateClient(accessKeyId *string, accessKeySecret *string) (_result *dysmsapi20170525.Client, _err error)
*
- 使用AK&SK初始化账号Client
- @param accessKeyId
- @param accessKeySecret
- @return Client
- @throws Exception
Types ¶
type GangaoRes ¶
type GangaoRes struct { Result int32 `json:"result" xml:"Result"` Desc string `json:"desc" xml:"Desc"` // base64编码 }
短信调用响应
type SendSmsReply ¶
type SendSmsReply struct { Code string `json:"Code,omitempty"` Message string `json:"Message,omitempty"` }
SendSmsReply 发送短信返回
Click to show internal directories.
Click to hide internal directories.