Monitor free disk space of Microsoft OneDrive?

onedrive access requires you to create an azure app to get an appid and a client secret.
then you can connect to via graph api to the onedrive storage and check the quota.

{‘deleted’: 0, ‘remaining’: 5359645283, ‘state’: ‘normal’, ‘total’: 5368709120, ‘used’: 9063837, ‘storagePlanInformation’: {‘upgradeAvailable’: True}}

3 Likes