Search code examples
google-docs-apigoogle-drive-api

Get available storage from Google Docs


I'm building a Java application that involves Google Docs API. I'm using the old API (Google Docs API) because the new one is much more complicated, and I spent hours trying to make it work.

Anyway, I used the example attached to the API, and got it working, as I can get the list of files, download/upload/delete a file.

How can I get the available storage (remaining space in the cloud storage)?


Solution

  • The new Drive API v2 includes the amount of total storage and available storage in the About feed: https://developers.google.com/drive/v2/reference/about