PHP code example of ydg / tongcheng-sdk

1. Go to this page and download the library: Download ydg/tongcheng-sdk 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/ */

    

ydg / tongcheng-sdk example snippets




use Ydg\TCSdk\TC;

(new TC())->activityOrder->list([
    'appId' => 'your appId',
    'begin_date' => date('Y-m-d H:i:s', time() - 3600),
    'end_date' => date('Y-m-d H:i:s'),
    'update' => 1,
    'page_index' => 0,
    'page_size' => 10,
]);