Google Drive Api V3 - 如何获取存储配额

Google Drive Api V3 - how to get storage quota

我有我的$client,现在我需要了解信息

$service = new \Google_Service_Drive($this->client)

我试过这样做

$service->about->get()

但是我得到了这个错误The 'fields' parameter is required for this method.

The 'fields' parameter is required for this method.

因为错误消息指出需要文件参数。

$optParams = array('fields' => '*');
$service->about->get($optParams);