PHP code example of leander / youdao-ai

1. Go to this page and download the library: Download leander/youdao-ai 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/ */

    

leander / youdao-ai example snippets




// just call whatever you want easely
$sdk = new YoudaoAi();
$sdk->api_method();




# ...controller or model method start...
$this->load->library(‘YoudaoAi’);
$this->youdaoai->api_method; //调用具体 API 函数
# ...controller or model method end...