Is it possible to add "Other calendar by URL" in google calendar API?

2k Views Asked by At

I have been unable to find help on Google Calendar APIreference. I am looking for a resource which makes the same things like option in user interface "Add by URL"( see below).

enter image description here

Is it possible to add other calendars by URL through Google Calendar API?

2

There are 2 best solutions below

1
ReyAnthonyRenacia On BEST ANSWER

I dont think this is supported yet. You can read below the "Add by URL" that this is for iCals.

With respect to DalmTo's suggestion, I tried placing an iCal URL as "id" in the POST request in CalendarList.insert. It didn't work.

I got an error saying:

"code": 404,
  "message": "Not Found"

But, when I added it manually using the Add by URL field, it was inserted. This only means that CalendarList.insert doesn't accept iCal URLs. I also checked the CalendarList resource and no mention of iCal URLs were present.

0
laving On

Add by URL is not very good functionality. We tried that and there are 2 main reasons why not to use it: 1. Users won't use it. They just don't understand it as it is too complicated. I understand you are looking solution for that - fine and good luck; 2. Google doesn't like it. For MANY years already Google is keeping artiicial time-lag between your ical source and Google Calendar. Approximately 6 hours. Meaning - if you update event in your application the update will be visible in Google Calendar after around 2-6 hours.

Maybe, just maybe, if you find Server-toServer solution for this, it is fixed but adding ical link is a waste.