php-youtube-api
php-youtube-api copied to clipboard
PHP wrapper for the Youtube Data API v3 ( Non-OAuth )
 if you set relatedToVideoId not need set q, but searchAdvanced want's
This library seems limited. For example, I want to fetch my public uploads. Looking through the public methods in the class I can’t do this. I can’t even craft my...
Hi, how about to get comment with this?thx
use following example use Madcoda\Youtube; $youtube = new Youtube(array('key' => '/\* Your API key here */')); // Set Default Parameters $params = array( 'q' => 'Android', 'type' => 'video', 'part'...
Hi, I've created a new function to retrieve all videos with automatic token! Check the code below: ``` private $next = array(); private $playItemsArray = array(); public function getAllPlaylistItemsByPlaylistId($playlistId,$maxResults=50,$pageToken=""){ $API_URL...
$channel = $youtube->getChannelById('UC78h1xpnf0nzr24-oZX1qAw'); Fatal error: Uncaught Exception: Error 400 'invideoPromotion' : unknownPart in Youtube.php:530 `public function decodeSingle(&$apiData) { $resObj = json_decode($apiData); if (isset($resObj->error)) { $msg = "Error " . $resObj->error->code...