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 ';
}
}