0xf4240fans / easydouyin
抖音SDK
1.0.0
2023-12-22 07:09 UTC
Requires
- php: >=8.0.2
- ext-curl: *
- ext-fileinfo: *
- ext-openssl: *
- ext-sodium: *
- nyholm/psr7: ^1.5
- nyholm/psr7-server: ^1.0
- psr/http-client: ^1.0
- psr/simple-cache: ^1.0|^2.0|^3.0
- symfony/cache: ^5.4|^6.0
- symfony/http-client: ^5.4|^6.0
- symfony/http-foundation: ^5.4|^6.0
- symfony/mime: ^5.4|^6.0
- symfony/polyfill-php81: ^1.25
- symfony/psr-http-message-bridge: ^2.1.2
Requires (Dev)
- brainmaestro/composer-git-hooks: ^2.8
- jetbrains/phpstorm-attributes: ^1.0
- laravel/pint: ^1.2
- mikey179/vfsstream: ^1.6
- mockery/mockery: ^1.4.4
- phpstan/phpstan: ^1.0
- phpunit/phpunit: ^9.5
- symfony/var-dumper: ^5.2
README
📦 一个 PHP 抖音开发 SDK。
环境需求
- PHP >= 8.0.2
- Composer >= 2.0
安装
composer require 0xf4240fans/easydouyin
使用示例
基本使用(以网站应用服务端为例):
<?php use EasyDouYin\Web\Application; $config = [ 'client_key' => 'awdb56xg27xocxxx', 'client_secret' => '318bd5d26f2f27650a5e0d2de7c9fxxx' ]; $app = new Application($config); // 获取热门视频榜单数据 $response = $app->getClient()->get("data/extern/billboard/hot_video/"); # 查看返回结果 var_dump($response->toArray());
文档和链接
License
MIT
感谢
💡 Inspired by easywechat