zimuoo / douyin-openapi
对接抖音开放平台的sdk
v1.0.6
2023-11-24 12:40 UTC
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
README
本包是根据ydg/douyin-open-sdk修改而来,感谢作者的辛苦付出~
新增内容
1,增加抖音来客券码核销功能 2,其他代码优化
<?php $app = new Douyin(); $app->oauth->client_token([ 'client_key' => 'your client key', 'client_secret' => 'your client secret', ]);
<?php $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, ]);