google-api-php-client icon indicating copy to clipboard operation
google-api-php-client copied to clipboard

Wrong method in auth example

Open Ianpilip opened this issue 9 years ago • 2 comments

On the page https://developers.google.com/api-client-library/php/auth/web-app there is a mistake in the code example of index.php. You have to write $files = $drive->files->listFiles(array())->getFiles(); instead of $files_list = $drive_service->files->listFiles(array())->getItems();

getItems(); doesn't work any more

Thank you!

Ianpilip avatar Sep 28 '17 09:09 Ianpilip

Thanks for the heads up. We will get that changed ASAP.

mattwhisenhunt avatar Feb 15 '18 15:02 mattwhisenhunt

The example code still wrong.

NickStarlight avatar Jun 26 '18 17:06 NickStarlight