PHP code example of shiwenyuan / alidayu

1. Go to this page and download the library: Download shiwenyuan/alidayu library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

shiwenyuan / alidayu example snippets



        $client = new TopClient('xxxx', 'xxxx');
        $req = new AlibabaAliqinFcSmsNumSendRequest;
        $param = array();
        $req->setSmsType("normal");
        $req->setSmsFreeSignName('xxx');
        $req->setSmsParam(json_encode($param));
        $req->setRecNum('xxx');
        $req->setSmsTemplateCode('xxx');
        $ret = $client->execute($req);
        var_dump($ret);