PHP SMS Interface (Ali Big fish)

Source: Internet
Author: User

The interface file is available in the Official Handbook of Ali Big Fish.

The Public Function Alidayu ($mobile) {include Vendor_dir. /alidayu/topsdk.php ";//Import Entry file
Date_default_timezone_set (' Asia/shanghai ');
$content = rand (100000,999999);
$signname = "Login Authentication";
$c = new \topclient;
$c->appkey = "23491577"//Required user Appkey
$c->secretkey = "60c9cab4f6913daa49c53f5fd0dc5d15";/Required User Secretkey
$req = new \alibabaaliqinfcsmsnumsendrequest;
$req->setsmstype ("normal");//SMS interface fill in normal
$req->setsmsfreesignname ($signname);
$req->setsmsparam ("{\" code\ ": \" ". $content." \ ", \" product\ ": \" Connaught honey \ "});/Verify code and website name
$req->setrecnum ($mobile);
$req->setsmstemplatecode ("sms_13745711"); short-term template by Ali Big Fish users to provide certification through the only line
$resp = $c->execute ($req);
if ($resp->result->success) {
return $content;
}else{
Return ' ERROR ';
}
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.