gpt4 book ai didi

php - 未找到 Google_DriveFile 类 Google Drive API

转载 作者:行者123 更新时间:2023-12-04 22:32:12 25 4
gpt4 key购买 nike

我在我的项目中使用 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com