123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- <?php
- use Flc\Alidayu\Client;
- use Flc\Alidayu\App;
- use Flc\Alidayu\Requests\AlibabaAliqinFcSmsNumSend;
- use Flc\Alidayu\Requests\AlibabaAliqinFcTtsNumSinglecall;
- use Flc\Alidayu\Requests\AlibabaAliqinFcVoiceNumSinglecall;
- use Flc\Alidayu\Requests\AlibabaAliqinFcSmsNumQuery;
- use Flc\Alidayu\Requests\AlibabaAliqinFcFlowGrade;
- use Flc\Alidayu\Requests\AlibabaAliqinFcVoiceNumDoublecall;
- use Flc\Alidayu\Requests\AlibabaAliqinFcFlowCharge;
- use Flc\Alidayu\Requests\AlibabaAliqinFcFlowQuery;
- use Flc\Alidayu\Requests\AlibabaAliqinFcFlowChargeProvince;
- use Flc\Alidayu\Requests\IRequest;
- require __DIR__ . '/../autoload.php';
- $config = [
- 'app_key' => '*****',
- 'app_secret' => '************',
- 'sandbox' => true,
- ];
- Client::configure($config);
- $rs = Client::request('alibaba.aliqin.fc.sms.num.send', function (IRequest $req) {
- $req->setRecNum('13312311231')
- ->setSmsParam([
- 'number' => rand(100000, 999999)
- ])
- ->setSmsFreeSignName('叶子坑')
- ->setSmsTemplateCode('SMS_15105357');
- });
- print_r($rs);
|