I am using Google Drive API in android for listing, uploading and downloading files of Google Drive and I have successfully implemented it.

Now i want User Storage Quota like how much space user has used and how much is left. Can any one suggest me how to do that?

有帮助吗?

解决方案

You can retrieve quota info from about resource by making an authenticated call to

GET https://www.googleapis.com/drive/v2/about

which is going to return an about entity with quotaBytesTotal and quotaBytesUsed.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top