Discuz integrated with alicloud SMS
2018-01-18
0 0 0
no vote
Other
Earn points
<?phpclass aliyun_ sms {public static function SendSms($string, $phone, $TemplateCode) {global $_ G. $params = array(); / / / part to be filled in by user https://ak-console.aliyun.com/ Get your AK information $accesskeyid =$_ G['aliyun']['accesskeyid'];$accessKeySecret = $_ G ['aliyun '] ['accesskeysecret']; / / fixme required: SMS receiving number $params [& quot; phonenumbers & quot;] = $phone; / / fixme required: SMS signature, which should be filled in strictly according to & quot; signature name & quot;, please refer to: https://dysms.console.aliyun.com/dysms.htm#/develop/sign $params["SignName"] = $_ G ['aliyun '] ['signname']; / / fixme required: SMS template code, which should be filled in strictly according to & quot; template code & quot; please refer to: https://dysms.console.aliyun.com/dysms.htm#/develop/template $params [& quot; templatecode & quot;] = $templatecode; / / fixme optional: set template parameters. If there are variables in the template that need to be replaced, it is a required item $params ['templateparam '] = $string; //Fixme optional: set SMS serial number / $params ['out
Related Source Codes
Android AOA Android Open Accessory Development Usi
0
0
no vote
Golang AOA Android Open Accessory HID Control
0
0
no vote
PClite
0
0
no vote
GMSK Linear Receiver
0
0
no vote
The golden version of AFT that has been passed dow
0
0
no vote
No comment