Read google public calendar - google-calendar-api

I need to read the RSS feed of google Calendar. It is publicly available in a site.
How get the events of calendar through RSS feed?

Sample Using Google Calendar API JSON Output
http://www.google.com/calendar/feeds/developer-calendar#google.com/public/full?alt=json-in-script&callback=insertAgenda&orderby=starttime&max-results=15&singleevents=true&sortorder=ascending&futureevents=true
This retrieves the full projection of the public feed for the developer-calendar#google.com calendar in JSON format (alt=json-in-script) with a callback function called insertAgenda. A maximum of 15 events is returned (max-results=15), recurring events are represented as individual events (singleevents=true) and all events in the future (futureevents=true) are returned in ascending order (sortorder=ascending).
Source: https://developers.google.com/gdata/samples/cal_sample

Related

How to fetch events just for the month and year displaying by the user?

i use VueJS 3 with type script and Full Calendar V6.
I need to load events when user click on Next or Previous month/year.
I need to fetch events just for the month and year displaying by the user.
I dont want to make a query that retrieves all the events in the database.
I use the "events:" property in calendarOptions.
But the only way I found is to pass an asynchronous request to this property (events:). This property will then distribute the events properly in the calendar.
How to make a dynamic and parameterized request, according to the month and year consulted by the user?

Outlook events sent to a google calendar - event ids change unexpectedly?

I am creating a meeting series from an outlook client, on an office365 mailbox.
The invited user is on g-suite (email, calendar...).
My code connects to google calendar via the API and periodically checks of event changes \ new events \ cancelled etc.
I store the event ids in my database and use them to match to the event IDs I read from google calendar.
When a whole meeting series is changed - for instance a weekly series gets a new starting time - the event IDs returning from google calendar APIs - change!
I am not sure if the IDs are generated by office\outlook or by g-suite.
I am not sure what's the right way to match the events I stored with their old IDs, to the new events coming in.
If you read the Google API Documentation, it states that recurring events are composed of instances. The recurring event is a parent and individual instances are its children. Each child has a recurringEventId which identifies its parent. Their individual instance ids might change when they are changed.
See the following: https://developers.google.com/calendar/recurringevents#modifying_or_deleting_instances

eventId and icalUID of event is getting different, created between outlook calendar and google calendar

Events created in outlook calendar with google calendar participants
and trying to fetch events from outlook and google calendar separately, but these are getting different id's and icalUID
Is there a way to find these two calendars having same events?
The mapping between iCalUID and EventId is not 1:1 (see https://developers.google.com/google-apps/calendar/v3/reference/events#iCalUID ).
You can search by iCalUID through calendar API's events.list() with parameter iCalUID: https://developers.google.com/google-apps/calendar/v3/reference/events/list#iCalUID

how to get/know google calendarID and eventID

I'm doing a tutorial for Google calendar so i can put it on my project..but it requires a Google calendarID so i can get events in my calendar my question is how or where do i get the calendarID and eventID?I'm doing the tutorial here
GET https://www.googleapis.com/calendar/v3/calendars/calendarId/events/eventId
this is where i should put the calendar id and event id
Calendar ID is the email address of a calendar. If you want to access your primary calendar, you should use your email address. Otherwise you can find it in the web UI in the calendar settings page.
Another option is to perform a CalendarList.list() operation and check the emails there.
Similarly for events you can do a list operation on the Events collection and learn the IDs.

Google Calendar API: Editing a single occurrence of a recurring event

Using the Google Calendar API, how can I edit a single occurrence of a recurring event? (the web interface allows me to do that)
Reading through some of the google forums on this I came across an answer from a google employee:
What you can also do is to retrieve
the events by adding the query
parameter 'singleevents=true' to the
feed URL. This will expand the
recurring events into multiple events.
http://code.google.com/apis/calendar/data/2.0/reference.html#Parameters
You will just have to modify the
desired events and it will create the
exception.
About the "Forbidden g:originalEvent
[2010-02-08 06:00:00] does NOT
correspond to an instance of the
recurring event": this mean that the
When object set in the OriginalEvent
doesn't match the time of the
occurrence of the recurring event.

Resources