Ali (FISH) API v2 0 new release

Time:2022-1-20

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.0From is not supportedv1.0Upgrade directly, please discardv1.0

Source code

function

environment

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

support

License

MIT