2017 © Pedro Peláez
 

library yii2-alidayu

alidayu development sdk

image

cdcchen/yii2-alidayu

alidayu development sdk

  • Tuesday, June 14, 2016
  • by cdcchen
  • Repository
  • 2 Watchers
  • 1 Stars
  • 200 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

yii2-alidayu

配置组件

'alidayu' => [
    'appKey' => 'xxx',
    'appSecret' => 'yyy',
],

发送短信

/* @var \cdcchen\yii\alidayu\Client $client */
$client = Yii::$app->get('alidayu');
$response = $client->sendSms('手机号', '短信签名', '短信模板代码', '模板参数', '回传参数');
if ($response->isOK()) {
    // success data
    $data = $result->getData();
}
else {
    // error data
    $data = $result->getData();
}

手机号码 如果为多个,使用数组方式;
模板参数 具体根据模板要求;
回传参数 为可选参数,具体根据业务需求;, (*1)

查询短信日志

/* @var \cdcchen\yii\alidayu\Client $client */
$client = Yii::$app->get('alidayu');
$response = $client->querySms('186xxxxxxxx', '日期', '当前页码', '每页条数', '流水号');
if ($response->isOK()) {
    // success data
    $data = $result->getData();
}
else {
    // error data
    $data = $result->getData();
}

日期 格式:20160607;
当前页码 从·q1开始;
每页条数 默认20, (*2)

The Versions

14/06 2016

dev-master

9999999-dev https://github.com/cdcchen/yii2-alidayu

alidayu development sdk

  Sources   Download

BSD-4-Clause

The Requires

 

by Dong Chen

alidayu

14/06 2016

1.0.0

1.0.0.0 https://github.com/cdcchen/yii2-alidayu

alidayu development sdk

  Sources   Download

BSD-4-Clause

The Requires

 

by Dong Chen

alidayu