【问题标题】:Google Drive Api V3 - how to get storage quotaGoogle Drive Api V3 - 如何获取存储配额
【发布时间】:2018-07-12 12:19:00
【问题描述】:

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

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

我试过这样做

$service->about->get()

但我收到此错误The 'fields' parameter is required for this method.

【问题讨论】:

    标签: php google-api google-drive-api google-api-php-client


    【解决方案1】:

    此方法需要 'fields' 参数。

    正如错误消息所述,files 参数是必需的。

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

    【讨论】:

      猜你喜欢
      • 2019-03-07
      • 2020-04-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多