ydg / douyin-open-sdk
Easier to access douyin open api
Installs: 1 544
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^7.0|^8.0
- ext-json: *
- ydg/foudation-sdk: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.12
- phpunit/phpunit: ^9.5
- vlucas/phpdotenv: ^5.5
This package is auto-updated.
Last update: 2025-02-15 10:23:00 UTC
README
let php developer easier to access douyin open api
Install the latest version with
$ composer require ydg/douyin-open-sdk
Basic Usage
Get Client Token
<?php namespace Ydg\DouyinOpenSdk\Douyin; $app = new Douyin(); $app->oauth->client_token([ 'client_key' => 'your client key', 'client_secret' => 'your client secret', ]);
Search Product
<?php namespace Ydg\DouyinOpenSdk\Douyin; $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, ]);