Tools:
- Php (programming language)
- MySQL database (to store events)
- Office 365 API (to interact with calendars from office 365)
I'm making a small system that reads in the events from a calendar every 5 minutes and displays them on a webpage. I achieve this by auto-refreshing the page every 5 minutes <meta http-equiv="refresh" content="10">
, when the page gets loaded it calls the API to get the newest events.
I chose to pick an auto-refresh rate because I didn't find any possibility/setting to make the calendar push data to my webpage when a new event is created. This would be better because then the webpage doesn't have to refresh every 5 minutes.
So my question: can the calendar of office 365 push data/generate a signal to my webpage so it can refresh only when the calendar has new event? If not, is there any other way to achieve this?
Thanks for your time