Documentation ¶
Index ¶
- func CreateCaptcha() string
- func CreateClient(accessKeyId *string, accessKeySecret *string) (_result *dysmsapi20170525.Client, _err error)
- func CreateClientWithSTS(accessKeyId *string, accessKeySecret *string, securityToken *string) (_result *dysmsapi20170525.Client, _err error)
- func Httppost(mobile string, code string) bool
- func IsMobile(mobile string) bool
- func Md5(src string) string
- func Send(mobile string, code string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateClient ¶
func CreateClient(accessKeyId *string, accessKeySecret *string) (_result *dysmsapi20170525.Client, _err error)
---------阿里云短信SDK------------ *
- 使用AK&SK初始化账号Client
- @param accessKeyId
- @param accessKeySecret
- @return Client
- @throws Exception
func CreateClientWithSTS ¶
func CreateClientWithSTS(accessKeyId *string, accessKeySecret *string, securityToken *string) (_result *dysmsapi20170525.Client, _err error)
* * 使用STS鉴权方式初始化账号Client,推荐此方式。本示例默认使用AK&SK方式。 * @param accessKeyId * @param accessKeySecret * @param securityToken * @return Client * @throws Exception
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.