阿里大于(鱼)API V2.0全新发布

之前的旧版本(v1.0)开源出去后,使用者较多;但兼容各大框架较差;为此发布v2.0;该版本全新架构,适用任意框架!

v2.0不支持从 v1.0直接升级,请抛弃 v1.0

源码

  • http://flc.ren/2016/09/563.html
  • https://github.com/flc1125/al...

功能

  • 短信发送
  • 短信发送记录查询
  • 文本转语音通知
  • 语音通知
  • 多方通话
  • 流量直充
  • 流量直充查询
  • 流量直充分省接口
  • 流量直充档位表
  • 辅助方法

环境

  • PHP >= 5.4
  • composer

安装

composer require flc/alidayu

使用

 '*****',
    'app_secret' => '************',
];

$client = new Client(new App($config));
$req    = new AlibabaAliqinFcSmsNumSend;

$req->setRecNum('13312311231')
    ->setSmsParam([
        'number' => rand(100000, 999999)
    ])
    ->setSmsFreeSignName('叶子坑')
    ->setSmsTemplateCode('SMS_15105357');

$resp = $client->execute($req)

print_r($resp);
print_r($resp->result->model);
?>

帮助

  • 意见、BUG反馈: https://github.com/flc1125/al...

支持

  • 官方网址: https://www.alidayu.com/
  • 官方API文档: https://api.alidayu.com/doc2/...
  • composer: https://getcomposer.org/

License

MIT

你可能感兴趣的:(php,阿里大鱼,api)