简体   繁体   中英

How to get today's events from Google Calendar (API) using JavaScript?

I'm new to Google Calendar APIs and what I'm trying to do is to display today's events from a public Google Calendar using JavaScript.

I've found this resource (dead link) , but I can't figure it out how to modify it so that it will output only today's events.

Any help will be appreciated.

Take a look at the API: https://developers.google.com/calendar/quickstart/apps-script

You can set the start-min and start-max parameters.

The question and answer had dead links. I used the info at https://developers.google.com/calendar/quickstart/apps-script to do this.

AuthSub proxy authentication is used by web applications which need to authenticate their users to Google accounts. The website operator does not need access to the username and password for the calendar user - only special AuthSub tokens are required. Please see the AuthSub documentation for more detailed information.

When a user first visits your application, they have not yet been authenticated. In this case, you need to print some text and a link directing the user to Google to authenticate your request for access to their calendar. The Python Google Data API client library provides a function to generate this URL from the CalendarService class. The code below sets up a link to the AuthSubRequest page.

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