我在我的项目中使用 google-api-php-client 库。我正在使用 Composer 在我的项目中自动加载库。其他类(即:Google_Client)工作正常。当我去实例化一个对象时,per the Google documentation ,我收到以下错误:
Fatal error: Class 'Google_DriveFile' not found
这是导致错误的行:
$file = new Google_DriveFile();
最佳答案
库更新后,类名更改为 Google_Service_Drive_DriveFile
,根据 article .文档未更新。
关于php - 未找到 Google_DriveFile 类 Google Drive API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25224669/