Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google drive api ParentReference或Google\u ParentReference_Google Drive Api_Google Api Client - Fatal编程技术网

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 {