SpaceDogCS
SpaceDogCS

Reputation: 2978

Google Drive Api V3 - how to get storage quota

I have my $client and now I need to get about info

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

I tried to do this

$service->about->get()

but I got this error The 'fields' parameter is required for this method.

Upvotes: 1

Views: 943

Answers (1)

Linda Lawton - DaImTo
Linda Lawton - DaImTo

Reputation: 117301

The 'fields' parameter is required for this method.

as the error message states the files parameter is required.

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

Upvotes: 2

Related Questions