exinfinite/ytc
Composer 安装命令:
composer require exinfinite/ytc
包简介
fetch youtube videos by youtube data api
README 文档
README
Install
composer require exinfinite/ytc
Usage
初始化
use Exinfinite\YTC\Agent; use Exinfinite\YTC\PlaylistItems; $apikey = "api-key"; $agent = new Agent($apikey, __DIR__ . '/cache'); $fetcher = new PlaylistItems($agent);
取得清單中影片
Reference:https://developers.google.com/youtube/v3/docs/playlistItems
$playlistID = 'playlistID'; $data = $fetcher ->setPart(['snippet']) ->setPlaylistId($playlistID) ->setMaxResults(10) ->query(false);//true:ignore cache
Roadmap
- PlaylistItems
- Playlists
- Videos
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-03-17