Skip to content
Advertisement

Google Drive API v3: Invalid field selection

I am using Google Drive API v3 to access about the drive like space quota.

And, no matter what I do, I am stuck with this error:

JavaScript

Please check that I am already making a perfect URL for the call: GET https://www.googleapis.com/drive/v3/about?fields=name But, still there is this error. Is there any parameter I am missing?

Please, can anyone tell me if there is problem with the API itself?

Advertisement

Answer

In v3 the fields definition has changed, it should be

JavaScript

instead of

JavaScript

Anyway, I have no exprience with PHP.

Ref:
https://developers.google.com/drive/v2/reference/about https://developers.google.com/drive/v3/reference/about


You can check yourself all the fields available: For now these were the fields I found: appInstalled, exportFormats, folderColorPalette, importFormats, kind, maxImportSizes, maxUploadSize, storageQuota & user.

If you need to check which fields are allowed, please go to https://developers.google.com/drive/v3/reference/about/get & do “Try It!”.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement