According to this documentation, you can insert a calendar into a users calendar list by a calendar id. However, what if the calendar is coming from a different endpoint? The endpoint we have downloads a .ics file.
This can be achieved manually by going to https://calendar.google.com/calendar/r/settings/addbyurl and pasting in the specified url. How can I achieve this using the API?
Are you sure the calendar you're inserting is a google calendar?
I think you might have to create/insert the calendar, and then import the events into it using your .ics file.
Inserting new calendar API: https://developers.google.com/calendar/v3/reference/calendars/insert
And then import if you have an iCalUID in the event info or insert otherwise. It's a lot less clean than just using the .ics file though. I suppose you could try to figure out what that part of the UI uses but I doubt it'll accept ad-hoc requests.
Related
I am using fullcalendar on my website now and I'll need to be able to export it to Google Calendar. I know that fetching events from Google Calendar is possible with (fullcalendar.io/docs/google-calendar) but the converse doesn't seem to be that easy.
This might be possible: Exporting events to XML (export fullcalendar to google calendar, ical, etc) then XML to iCal, however both are rather dated tools so if there was a proper/working way that would be nice!
currently I am using Google Calendar's XML feed for shared calendars to view when events are created and who created them. This works great, unfortunately, Google Calendar is getting rid of their XML feeds Nov 17, which is absurd but besides the point. Now I have a problem:
I have taken a look at the exported ICS file which tells me when an event was created but not the creator of the event, which is useless because there are 5 people sharing a calendar scheduling events and I need to know the author of the events. There is no specification for author in the ICS file (like there is with the author tag in the XML feed).
So the simple question is, with a shared calendar, is there a way to tell (without XML feeds) who created the event?
Thanks so much, Bob
My team is using google shared calendar. Sometimes members blow away some events, I would like to see if there is a way to find out 'last updated by' and 'who updated specific event'
I could not find setting in Google calendar.
Thanks
There is no way to do this. However, rather than giving users editor rights to the calendar, you could simply give them read or freebusy access to the calendar and configure the calendar to auto-accept the events. Then when users need to create events on the shared calendar, they'd invite the calendar rather than creating the event directly on it. This gives each user access to modify only the events they own on the calendar.
I've created an iCal which I'm trying to use in Google Calendar, but no events are being displayed. The feed is at here. Each event looks like the following, and two iCal validators are telling me it's a valid file. Does google need an extra field for each entry?
I created my own iCal dumper at https://views.scraperwiki.com/run/days_of_the_year_1/ , which builds the source piece by piece. It won't work when I subscribe online via Google calendar, but if I save, then import the source the events are added. I guess there must be an out of place character in feed2ical's ouput.
I know it's been a long time, but I finally noticed that my old feed2ical script was busted in various ways. It should be fixed now and I put the source on github as well. Man I really didn't know python when I wrote that :) It's still pretty crappy code, but it validates now and works in Google Calendar, Apple's iCal, and Microsoft Outlook.
http://feed2ical.appspot.com, https://github.com/dsanvita/feed2ical
I am creating an Expression Engine Calendar using Solspace's Calendar module which exports .ics files. I would like for users to be able to click on a link to add events to their Google Calendar.
Google search we too broad and I need some more specific direction on how this might be done.
You mention that you are using a module that exports the ics files.
Generally link should then be to the ics file (or the code that produces the ics file dynamically).
Then when the user clicks the link, the browser sees it is an ics file and depending on the user's settings will prompt an action (usually to add to their calendar).
If you specifically only want to add to their google calendar, then you need to generate the sorts of link hrefs you see at this test site:
http://test.icalevents.com/calendar-of-all-events/
It has example of "add whole calendar to google) and "add just an event to google" (as well as the more general ics links).
Hope that makes it clearer?
If you just want to have links to add individual events to a visitor's calendar, follow the Google developer documentation here: http://www.google.com/googlecalendar/event_publisher_guide_detail.html
Then just use your various field variables to build the link to spec in your template.