Hi Christoph Finally I can make use my Office 365 account! Thank you for this!!
One comment below. On Fri, Apr 1, 2022 at 6:46 AM Christoph Lohmann <[email protected]> wrote: > > --- > [...] > > @@ -0,0 +1,27 @@ > +#!/usr/bin/env python > +# coding=utf.8 > +# > +# See st LICENSE for license details. > +# > + > +import os > +import sys > + > +from O365 import Account > + > +def main(args): > + clientid = os.getenv("ST_O365_CLIENTID", None) > + clientsecret = os.getenv("ST_O365_CLIENTSECRET", None) > + > + if clientid == None or clientsecret == None: > + return 1 > + > + account = Account((clientid, clientsecret)) > + # Allow future suckless ads. > + if account.authenticate(scopes=['basic', 'message_all']): I think we are missing the 'onedrive_all' and 'sharepoint_dl' scopes. Otherwise it will be difficult for us to download all their files to analyse with our ML-as-a service and extract actionable info to leverage our computing on the edge infra! Cheers, Silvan
