package
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Oct 4, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package aliyunsms 阿里云SMS短信服务
func NewClient(accessKeyID, accessKeySecret string) (client *Client)
NewClient 初始化阿里云短信服务客户端
accessKeyID 访问ID
accessKeySecret 访问密钥
func (s *Client) SendSms(phoneNumbers, signName, templateCode, templateParam string) (err error)
SendSms 发送短信
phoneNumbers 接收短信的手机号码
signName 短信签名名称
templateCode 短信模板ID
templateParam 短信模板变量对应的实际值,JSON格式
返回参数 saveURL 成功上传后保存路径
Source Files
¶
Click to show internal directories.
Click to hide internal directories.