【问题标题】:Google_DriveFile Class Not Found Google Drive APIGoogle_DriveFile 类未找到 Google Drive API
【发布时间】:2014-08-10 01:22:45
【问题描述】:

我在我的项目中使用 google-api-php-client 库。我正在使用 Composer 在我的项目中自动加载库。其他类(即:Google_Client)工作正常。当我去实例化一个对象时,per the Google documentation,我得到以下错误:

Fatal error: Class 'Google_DriveFile' not found

这是导致错误的行:

$file = new Google_DriveFile();

【问题讨论】:

    标签: php google-api google-api-php-client google-drive-api


    【解决方案1】:

    更新库时,类名更改为Google_Service_Drive_DriveFile,根据此article。文档未更新。

    【讨论】:

    • 截至 2015 年,Jule 我仍然在 Drive.php 中看到大量 Google_DriveFile 引用,感谢这个答案
    • 能否告诉我如何包含 Google_Service_Drive_DriveFile 类?还有从哪里获取文件?
    猜你喜欢
    • 1970-01-01
    • 2021-03-18
    • 2013-05-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多