Google drive api 谷歌驱动API WebContentLink

Google drive api 谷歌驱动API WebContentLink,google-drive-api,Google Drive Api,在google drive api的v3版本中,如何使用php在浏览器中查看文件,查询不会向我返回任何内容webcontentlink我知道这是非常旧的,但无论如何我都会回答这个问题 默认情况下,Google Drive Api V3不再返回所有字段,因此您必须请求在“字段”替代参数中返回哪些字段 所以,举个例子 $file = $service->files->get( $id, array( "fields" => "id, webContentLink" ) ); 谷歌

在google drive api的v3版本中,如何使用php在浏览器中查看文件,查询不会向我返回任何内容webcontentlink

我知道这是非常旧的,但无论如何我都会回答这个问题

默认情况下,Google Drive Api V3不再返回所有字段,因此您必须请求在“字段”替代参数中返回哪些字段

所以,举个例子

$file = $service->files->get( $id, array( "fields" => "id, webContentLink" ) );

谷歌现在将返回webContentLink

我知道这是非常旧的,但无论如何我会回答这个问题

默认情况下,Google Drive Api V3不再返回所有字段,因此您必须请求在“字段”替代参数中返回哪些字段

所以,举个例子

$file = $service->files->get( $id, array( "fields" => "id, webContentLink" ) );

google现在将返回WebContent链接

我不知道php的实现,但我是用java实现的。Php的实现也会有些类似。我不知道Php的实现,但我是用java实现的,正如前面所解释的。Php实现也会有点类似。我不知道为什么这样的列表文件不起作用:
$files=$service->files->listFiles($parameters)我不知道为什么这样的列表文件不起作用:
$files=$service->files->listFiles($parameters)