Get Gmail storage usage programmatically

How can I get the software to use Gmail? This value appears in two places, but I cannot find an API for it.

The main purpose is to automatically record Gmail storage usage in Google Sheet and a storage usage trend graph.

What I have tried:


enter image description here

+3


source to share


1 answer


Not the programmatic answer I'm looking for, but this is my manual work until I find the API method:

...
, [["Drive", ["24004828", "0.02 GB"]
]
, ["Gmail", ["4859735562", "4.52 GB"]
]
, ["Google Photos", ["0", "0 GB"]
...


  1. Record that (4 859 735 562) in a Google Sheet along with the current date / time

Using accurate measurements of bytes and seconds, it only takes a few measurements to get an accurate trend. (And I don't need to scale this across multiple accounts.)

0


source







All Articles