php-youtube-api
php-youtube-api copied to clipboard
Trying to get property of non-object
vendor/madcoda/php-youtube-api/src/Youtube.php:582
'resultsPerPage' => $resObj->pageInfo->resultsPerPage,
Can you please provide full code.I am not getting from where you are collecting $resObj
Also, The "resultsPerPage" value have to be "Integer" means you are gonna set,
'resultsPerPage' => '10'
This would load 10 videos on every page
This is not my code, you can see the full method here: https://github.com/madcoda/php-youtube-api/blob/v1.2.4/src/Youtube.php