php-youtube-api icon indicating copy to clipboard operation
php-youtube-api copied to clipboard

Trying to get property of non-object

Open rarepixel-studio opened this issue 7 years ago • 2 comments

vendor/madcoda/php-youtube-api/src/Youtube.php:582 'resultsPerPage' => $resObj->pageInfo->resultsPerPage,

rarepixel-studio avatar Nov 20 '17 09:11 rarepixel-studio

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

rayhanz avatar Apr 02 '18 19:04 rayhanz

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

rarepixel-studio avatar Apr 03 '18 04:04 rarepixel-studio