获得通过API的Python的Gmail帐户可用空间 [英] Get available space on Gmail account via API python

查看:121
本文介绍了获得通过API的Python的Gmail帐户可用空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法(API或anything..pop / IMAP在python),通过它你可以了解你的Gmail帐户中的可用空间?

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?

推荐答案

这似乎Gmail支持的配额扩展为IMAP ,至少有一些信息是可用的方法。

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)

的单位是字节。这意味着我总共使用了10千兆字节,这似乎大约匹配的72兆,什么gmail.com要说的是每个用户的电流量。

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.

这篇关于获得通过API的Python的Gmail帐户可用空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆