nekland / youtube-api
这是一个简单的库,您可以在其基础上构建您的API。
v0.2.1
2018-08-16 19:33 UTC
Requires
- php: >=5.6
- guzzle/guzzle: >=3.7
- namshi/jose: ~1.2
- nekland/base-api: ~0.0.1
Requires (Dev)
- phpunit/phpunit: >=3.7,<6
Suggests
- nekland/soundcloud-api: Soundcloud API made easy !
This package is auto-updated.
Last update: 2024-08-26 01:35:45 UTC
README
让我们使使用youtube变得简单、酷、易于维护!
入门
安装
您应该使用composer来安装它,安装非常简单
composer require 'nekland/youtube-api'
用法
<?php $youtube = new Youtube(); // You have to authenticate to access the youtube api $youtube->authenticate( 'JsonFileServiceAuth', ['json_file' => 'my_google_certificate.json'] ); // The info variable will contains an array of data returned by google $info = $youtube->api('videos')->getById('RnpyRe_7jZA');
更多
我们在docs文件夹中有一个更完整的文档。
感谢
这个库受到了KnpLabs的php-github-api的启发。
任何贡献都非常欢迎。并且,我们爱你们这些贡献者。