I have created a code which generates .ics to synchronize events from my application to other calendar system like google, mac-ical, outlook etc.
I add url to these systems and all events from my application get synchronized.
This code does work fine but problem is event doesn't get synchronized instantly, it takes time to fetch events automatically.
So I want to make all events to get pushed to all subcribers, so that they get instantly updated, many applications do provide such things, in that I get instant update to my iCal on creating event.
So that is possible, I want to know how can I do it using php language, what technology I need to push events, instead of auto fetching by calendar system.
It will get general push to all subscribers not for any particular system like google calendar, I know it does have its own API.
I have created a Calendar App where users can add their events and user can sync this Calendar with their Google Calendar. Basically, it is a two-way syncing.
Here is how it's working:
When a user adds a new event in the calendar app, it is adding to Google Calendar.
When User Adding an event in Google Calendar directly it is syncing to my Calendar App via Calendar Notifications (Channel notification).
Problem is that when user adding an event in my calendar App it's adding to Google Calendar and I am getting sync notification and system adding/updating the recently added event again.
So, I am searching a way that I should not get sync notification when an event just added from my Calendar App.
Can I share one public calendar with another user using Google Calendar API? so when I update the calendar everyone gets the update too, without enter to my website again.
I saw that I can create a calendar and add events, but what I want is to share my calendar not create a new one in another user account.
Thanks :)
How can I receive event info when it is created on google calender site ..
I want to get the event and process it using my script ..
example :
1- user create an event in Google Calender site
2- Google push the event to my url www.example.com/event.php
3-event.php will process the event data
the question how can configure Calender to send the creation event? is this applicable or should i use cron job to query Google calander and fetch events
Google introduced push notifications for calendar,
for more details refer http://googledevelopers.blogspot.ch/2013/07/google-calendar-api-push-notifications.html
I am creating a php website that uses the Google Calendar API. It's working fine with Create, Update and Delete: any event from the PHP website goes into my Google Calendar events after login.
Events created on my site are created in Google Calendar.
What I want now that is: when I create an event from my test page it goes into Google Calendar after login, then if I update or delete that event from Google Calendar then it should automatically update or delete the php website event.
Basically: 1-way sync is working fine but now I want 2-way synchronization.
If anybody has any ideas then kindly share with me, it will be much appreciated.
There are no application hooks in Google Calendar (gCal) that allow you to trigger an action when an event is deleted. Instead you must either poll gCal at intervals (this could be a cron job every few minutes/hours) and update your calendar accordingly, or any time you perform an action from your calendar have a 1 in X possibly of a full re-sync.
This implies that you are using the gCal as the definitive source, and mirroring those changes back to your local application.
well, after following these answers and building a hole 2 way sync process,
i realized there's a push notifications for calendar since 2013.
you will still need a full sync process because the push notification only notifies about a change but no data about the change.
hope it will save you some time.
Push Notifications
Would it not be an option for your system to generate an iCal output at a special, user-specific URL, and then have the user subscribe to that calendar in Google Calendars (or their iCal-reading calendar of choice)?
That way, your system would always hold the authorative calendar, and Google Calendar would reflect any changes you make automatically.
Alternately, if you are wanting changes in the Google Calendar to be reflected in your application, then you may be able to subscribe to iCals for the User's Calendar, and then poll them at a regular interval to reflect any changes the User has made at that end.
I would lean towards the first option (your iCal subscribed through Google Calendar), as it is a simpler and easier solution.