How about this? :-)

USER>w ##class(%SYS.Python).Import("time").time()

I've made such an adapters based on Jose's work.

My articles, I'm afraid which is written in Japanese only,  is using IMAP/SMTP against gmail as target provider but I hope it works against Office365 as well.

The idea is you prepare a JSON file like this and production will pick it up when it starts (via OnStart() callback).
After that, adapter itself get new AccessToken periodically by using a given RefreshToken (well, at least that what I've intended).

Open Exchange applications:
Tomohiro has no followers yet.
Tomohiro has not followed anybody yet.
Global Masters badges: