Documentation ¶
Index ¶
- type QMultiResult
- type QPullReplyResult
- type QPullStatusResult
- type QReplyMessage
- type QSendStatus
- type QSender
- func (s *QSender) MultiSend(sign string, countryCode int, mobiles []string, tplID int, params ...string) (*QMultiResult, error)
- func (s *QSender) MultiSendEachCC(sign string, telphones []Telphone, tplID int, params ...string) (*QMultiResult, error)
- func (s *QSender) PullReply(max int) (*QPullReplyResult, error)
- func (s *QSender) PullSingleReply(countryCode int, moblie string, beginTimeStr string, endTimeStr string, ...) (*QPullReplyResult, error)
- func (s *QSender) PullSingleStatus(countryCode int, moblie string, beginTimeStr string, endTimeStr string, ...) (*QPullStatusResult, error)
- func (s *QSender) PullStatus(max int) (*QPullStatusResult, error)
- func (s *QSender) SingleSend(sign string, countryCode int, mobile string, tplID int, params ...string) (*QSingleResult, error)
- func (s *QSender) VoiceSendCaptcha(mobile string, playTimes int, code string) (*QVoiceResult, error)
- func (s *QSender) VoiceSendPrompt(mobile string, playTimes int, promptfile string) (*QVoiceResult, error)
- func (s *QSender) VoiceSendTpl(mobile string, playTimes int, params []string, tplID int) (*QVoiceResult, error)
- type QSingleResult
- type QVoiceResult
- type Telphone
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QMultiResult ¶
type QMultiResult struct { Result int `json:"result"` ErrMsg string `json:"errmsg"` Ext string `json:"ext"` Detail []qMultiResultDetail `json:"detail"` Sid string `json:"sid"` }
QMultiResult 群发回复
type QPullReplyResult ¶
type QPullReplyResult struct { Count int `json:"count"` Data []QReplyMessage `json:"data"` ErrMsg string `json:"errmsg"` Result int `json:"result"` }
QPullReplyResult 拉取短信状态结果
type QPullStatusResult ¶
type QPullStatusResult struct { Count int `json:"count"` Data []QSendStatus `json:"data"` ErrMsg string `json:"errmsg"` Result int `json:"result"` }
QPullStatusResult 拉取短信状态结果
type QReplyMessage ¶
type QReplyMessage struct { Extend string `json:"extend"` Mobile string `json:"mobile"` Nationcode string `json:"nationcode"` Sign string `json:"sign"` Text string `json:"text"` Time int64 `json:"time"` }
QReplyMessage 回复消息
type QSendStatus ¶
type QSendStatus struct { UserReceiveTime string `json:"user_receive_time"` Nationcode string `json:"nationcode"` Mobile string `json:"mobile"` ReportStatus string `json:"report_status"` Errmsg string `json:"errmsg"` Description string `json:"description"` Sid string `json:"sid"` }
QSendStatus 短信状态
type QSender ¶
QSender 发送模型
func (*QSender) MultiSend ¶
func (s *QSender) MultiSend(sign string, countryCode int, mobiles []string, tplID int, params ...string) (*QMultiResult, error)
MultiSend 统一国家码群发短信
func (*QSender) MultiSendEachCC ¶
func (s *QSender) MultiSendEachCC(sign string, telphones []Telphone, tplID int, params ...string) (*QMultiResult, error)
MultiSendEachCC 各自国家码群发短信
func (*QSender) PullReply ¶
func (s *QSender) PullReply(max int) (*QPullReplyResult, error)
PullReply 拉取短信回复
func (*QSender) PullSingleReply ¶
func (s *QSender) PullSingleReply(countryCode int, moblie string, beginTimeStr string, endTimeStr string, max int) (*QPullReplyResult, error)
PullSingleReply 拉取单个号码短信回复
func (*QSender) PullSingleStatus ¶
func (s *QSender) PullSingleStatus(countryCode int, moblie string, beginTimeStr string, endTimeStr string, max int) (*QPullStatusResult, error)
PullSingleStatus 拉取单个号码短信下发状态
func (*QSender) PullStatus ¶
func (s *QSender) PullStatus(max int) (*QPullStatusResult, error)
PullStatus 拉取短信下发状态
func (*QSender) SingleSend ¶
func (s *QSender) SingleSend(sign string, countryCode int, mobile string, tplID int, params ...string) (*QSingleResult, error)
SingleSend 发送单条短信
func (*QSender) VoiceSendCaptcha ¶
func (s *QSender) VoiceSendCaptcha(mobile string, playTimes int, code string) (*QVoiceResult, error)
VoiceSendCaptcha 发送语音验证码 给国内用户发语音验证码(仅支持数字)
func (*QSender) VoiceSendPrompt ¶
func (s *QSender) VoiceSendPrompt(mobile string, playTimes int, promptfile string) (*QVoiceResult, error)
VoiceSendPrompt 发送语音通知 给国内用户发语音通知(支持中文、英文字母、数字及组合,内容长度不超过100字)
func (*QSender) VoiceSendTpl ¶
func (s *QSender) VoiceSendTpl(mobile string, playTimes int, params []string, tplID int) (*QVoiceResult, error)
VoiceSendTpl 发送语音模板通知 给国内用户发语音通知(支持中文、英文字母、数字及组合,内容长度不超过100字)
type QSingleResult ¶
type QSingleResult struct { Result int `json:"result"` ErrMsg string `json:"errmsg"` Ext string `json:"ext"` Fee int `json:"fee"` Sid string `json:"sid"` }
QSingleResult 单发回复
Click to show internal directories.
Click to hide internal directories.