PHP code example of 0xf4240fans / easydouyin
1. Go to this page and download the library: Download 0xf4240fans/easydouyin 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/ */
0xf4240fans / easydouyin example snippets
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());