PHP code example of makcent / yii2-alidayu
1. Go to this page and download the library: Download makcent/yii2-alidayu library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
makcent / yii2-alidayu example snippets
return [
//....
'components' => [
'taobao' => [
'class' => 'Alidayu\Top',
'appkey' => '655565216',
'secret' => '4b8981dfve4114c9d79387aa9'
],
]
];
$c = Yii::$app->taobao->TopClient;
$req = Yii::$app->taobao->AlibabaAliqinFcSmsNumSendRequest;
$req->setExtend("123456");
$req->setSmsType("normal");
$req->setSmsFreeSignName("久居你心");
$req->setSmsParam("{\"name\":\"1234\"}");
$req->setRecNum("18888888888");
$req->setSmsTemplateCode("SMS_909254503");
$resp = $c->execute($req);