PHP code example of zimuoo / douyin-openapi
1. Go to this page and download the library: Download zimuoo/douyin-openapi 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/ */
zimuoo / douyin-openapi example snippets
$app = new Douyin();
$app->oauth->client_token([
'client_key' => 'your client key',
'client_secret' => 'your client secret',
]);
$app = new Douyin([
'access_token' => 'your access_token'
]);
$app->lifeOutsideDistribution->search_product([
'uid' => 'your uid',
'cursor' => 0,
'count' => 10,
'sort_by' => 1,
'order_by' => 1,
]);