Google drive api ParentReference或Google\u ParentReference

Google drive api ParentReference或Google\u ParentReference,google-drive-api,google-api-client,Google Drive Api,Google Api Client,在Google文档中()包含以下代码段: $file = new Google_DriveFile(); ... $parent = new ParentReference(); 我在中遇到错误致命错误:找不到类“ParentReference”。我将GoogleAPI php客户端升级为ParentReference 似乎添加了一些前缀“Google\u”,ParentReference被重命名为*Google\u ParentReference* 我的结论是对的?还有什么我不明白的吗?

在Google文档中()包含以下代码段:

$file = new Google_DriveFile();
  ...
$parent = new ParentReference();
我在
中遇到错误致命错误:找不到类“ParentReference”
。我将GoogleAPI php客户端升级为ParentReference

似乎添加了一些前缀“Google\u”,ParentReference被重命名为*Google\u ParentReference*

我的结论是对的?还有什么我不明白的吗?

是的,你说得对

如果您要下载最新版本,您可以检查几乎所有的类都有前缀Google\ux

例如,在文件夹
\src\contrib\Google\u DriveService.php
中,可以找到Google\u ParentReference的定义

同时检查(谷歌硬盘SDK)。

是的,你说得对

如果您要下载最新版本,您可以检查几乎所有的类都有前缀Google\ux

例如,在文件夹
\src\contrib\Google\u DriveService.php
中,可以找到Google\u ParentReference的定义

另请检查(谷歌硬盘SDK)

lib: grep -R ParentReference ./ | grep class
.../Google_DriveService.php:class Google_ParentReference extends Google_Model {