Re: Accessing emails on Office 365 via OAuth

Just a quick heads up, I updated the solution under
One can't help but notice that Microsoft has a well structured approach to documenting Graph, like "if you want to read mails, you need that permission" + an interactive tool to experiment with the API. It feels almost like MS want's to nudge people in that direction.
Graph-Explorer is here: https://developer.microsoft.com/en-us/graph/graph-explorer
Documentation of Mail-Objects is here: https://learn.microsoft.com/en-us/graph/api/resources/mail-api-overview?view=graph-rest-1.0
- Code: Select all
https://github.com/RobertEdelmann1974/office365_test
One can't help but notice that Microsoft has a well structured approach to documenting Graph, like "if you want to read mails, you need that permission" + an interactive tool to experiment with the API. It feels almost like MS want's to nudge people in that direction.
Graph-Explorer is here: https://developer.microsoft.com/en-us/graph/graph-explorer
Documentation of Mail-Objects is here: https://learn.microsoft.com/en-us/graph/api/resources/mail-api-overview?view=graph-rest-1.0