PHP code example of ydg / douyin-ug-open-sdk

1. Go to this page and download the library: Download ydg/douyin-ug-open-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 / douyin-ug-open-sdk example snippets




use Ydg\DouyinUgOpenSdk\DouyinUg;

$app = new DouyinUg([
    'access_key' => 'your access_key',
    'secret_key' => 'your secret_key',
]);
$app->bff->alliance_materials_products_search();