3 ms·
Slightly API related rant: I just wanted to get my free/busy info from office 365. I wanted to control a "do not disturb" light without using a phone app. Ther
by bloopernova 3y ago
Slightly API related rant:
I just wanted to get my free/busy info from office 365. I wanted to control a "do not disturb" light without using a phone app. There doesn't seem to be any straightforward method to "generate a token, save it in Bruno or Postman etc, then POST to a specific endpoint". The docs I saw talk about registering an app, and all sorts of heavyweight stuff in Azure.
Why can't I just call some URL, or add a webhook somewhere and be done with it?
- deleted 3y ago[deleted]
- mksybr 3y agoYou can sign into Graph Explorer and get an access token there: https://developer.microsoft.com/en-us/graph/graph-explorer https://developer.microsoft.com/en-us/graph/graph-explorer No clue how long it lasts.
- bloopernova 3y agoOh, that is cool! But corporate IT has apparently blocked being able to use graph-explorer. Thank you anyway! :)
- bckr 3y agoGuess it’s time to scrape your calendar from web?
- tsmeets 3y agoYou can also use the outlook COM API and extract the data from the running outlook instance [1]. See [2] for a python example that extracts a '.ics' file. [1] https://learn.microsoft.com/en-us/office/vba/api/outlook.calendarmodule https://learn.microsoft.com/en-us/office/vba/api/outlook.cal... [2] https://github.com/TomSmeets/export-outlook-to-ics/blob/master/main.py https://github.com/TomSmeets/export-outlook-to-ics/blob/mast...