Previous versions(v1.0
)After the open source goes out, there are more users; However, it is not compatible with major frameworks; Publish for thisv2.0
; The new architecture of this version is applicable to any framework!
v2.0
From is not supportedv1.0
Upgrade directly, please discardv1.0
Source code
function
- SMS sending
- SMS sending record query
- Text to voice notification
- Voice notification
- Multi party call
- Flow direct charging
- Traffic direct charging query
- Flow direct charging provincial interface
- Flow direct charging gear gauge
- Auxiliary method
environment
- PHP >= 5.4
- composer
install
composer require flc/alidayu
use
<?php
use Flc\Alidayu\Client;
use Flc\Alidayu\App;
use Flc\Alidayu\Requests\AlibabaAliqinFcSmsNumSend;
//Configuration information
$config = [
'app_key' => '*****',
'app_secret' => '************',
];
$client = new Client(new App($config));
$req = new AlibabaAliqinFcSmsNumSend;
$req->setRecNum('13312311231')
->setSmsParam([
'number' => rand(100000, 999999)
])
->Setsmsfreesignname ('leaf pit ')
->setSmsTemplateCode('SMS_15105357');
$resp = $client->execute($req)
print_r($resp);
print_r($resp->result->model);
?>
help
- Comments and bug feedback:https://github.com/flc1125/al…
support
- Official website:https://www.alidayu.com/
- Official API documentation:https://api.alidayu.com/doc2/…
- composer: https://getcomposer.org/
License
MIT