简体   繁体   中英

Load Google Calendar Events periodically

Im currently working on a SmartMirror Project using a php Page. I'm trying to get my upcoming Google Calendar events using js and oauth 2.0. So far everythings working fine. With the Sample from JavaScript Quickstart I get my upcoming events when I load the page. The function checkAuth ist called onload.

I want the Eventlist to be up-to-date without refreshing the page. How can I accomplish that? Which function do i have to call in specific intervals?

I'm quite new to JS so thank you all for your help.

Well it actually works now. I just call loadCalendarApi() at the onload event. The call via setTimeout() is doing my interval-job.

Stupid question - easy answer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM