jmcharnes
jmcharnes

Reputation: 727

Google_DriveFile Class Not Found Google Drive API

I'm using the google-api-php-client Library in my project. I'm using Composer to auto load the library in my project. The other classes (ie: Google_Client) are working fine. When I go to instantiate an object, per the Google documentation, I get the following error:

Fatal error: Class 'Google_DriveFile' not found

This is the line causing the error:

$file = new Google_DriveFile();

Upvotes: 2

Views: 3241

Answers (1)

jmcharnes
jmcharnes

Reputation: 727

When the Library was updated, the class name was changed to Google_Service_Drive_DriveFile, per this article. The documentation was not updated.

Upvotes: 11

Related Questions