我将Google Drive API v3与服务帐户一起使用。我可以读取文件夹的权限,但是我不知道如何获取权限详细信息。
$pfolderId = $file->id;
$optpParams = array(
'fields' => "id,type,role,emailAddress,permissionDetails"
);
$permission = 'xxxxxxxxxxxxxxxxx';
$perm = new Google_Service_Drive($client);
$request = $perm->permissions->get($pfolderId, $permission, $optpParams);