Get available space on Gmail account via API python

梦想与她 提交于 2019-12-12 03:44:04

问题


Is there a way(Api or anything..pop/imap in python) via which you can get to know the available space on your Gmail account?


回答1:


It appears GMail supports the Quota Extension for IMAP, and at least some information is available that way.

On my account, I get this information:

  > a001 GETQUOTA ""
  < * QUOTA "" (STORAGE 72600 10601545)

The units are in kilobytes. This means I'm using 72 megs, of a total of 10 gigabytes, which appears to match approximately what gmail.com is saying is the current amount per user.



来源:https://stackoverflow.com/questions/15379142/get-available-space-on-gmail-account-via-api-python

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!