Google Drive .ZIP文件集权限到期



是否可以在非google驱动器文件上设置许可的到期时间?例如zip文件(不是 google文档,电子表格,.etc。(。

如果是这样,如何做?

我正在使用以下功能生成可共享链接:

public function getShareableLink($file) {
    $tempPermission = new Google_Service_Drive_Permission([
        'type' => 'anyone',
        'role' => 'reader',
        'withLink' => true,
    ]);
    $this->service->permissions->create($file, $tempPermission);
    $fileMetadata = $this->service->files->get($file, array('fields' => 'webViewLink'));
    return $fileMetadata->getWebViewLink();
}

似乎我可以通过权限类设置有效期,但是我在驱动器GUI中找不到有关链接是否到期的任何信息(甚至为此设置了有效期(。

到目前为止,有效选项仅针对'用户'的许可类型开放。

最新更新