Stop Google Calendar Event notification for Specific case - php

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.

Related

How to Manage events in my Own Google Calendar through PHP API

I want to create events in my own google Calendar through PHP API.
Should I use Google Service Account for that ?
I have followed google tutorials, and setup a service account , and
created code to insert events into my calendar. The code is working
fine, the events are not appearing on my calendar.
It seems using service account, it's sending events to some other calendar belonging to the service account , but not to my own calendar.
Note: I have a web application, I just want to send some events in to my own google calendar ( not any other user's just my own single calendar).
What I found so far is that using Service account is the right approach if you want to edit your own google calendar entries through API.
But you need to give permissions to the service account for the calendar you wish to work on using google Calendar settings.
To give permission to service account, you just need to add the service account email ID (auto generated , when creating a service account) on the google calendar settings page , under "permissions" section.

Share Google Calendar with all events to another user - PHP API

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 :)

Listening to Event deletion via PUSH

I'm working with Google calendar API, all my site is about to manage my appointments.
Now I'm integrating Google calendar to my site, so if I add or update any from my site the same are going to change in my Google calendar. If I change details in calendar I need to get my site DB updated via Push mechanism. Now I've established connection/mechanism to update the event details so if I change the date/time in my calendar my code is changing my DB with respect to Google calendar new date/time on that event via Push.
But I'm not sure how to delete any event which I delete in my calendar, for example:
If I delete an existing appointment in my calendar, that needs to be deleted in my DB too so it wont list on my appointment list.
Can someone help me how to track event deletion from Google API?
Is there a flag to notify at all?
Deleted events have status set to "cancelled".
If you want to also have cancelled events included in the events list requests, you should specify showDeleted=true as a request parameter.
Check out the documentation for details
https://developers.google.com/google-apps/calendar/v3/reference/events/list

Google Calender Notfiy When on Event Creation

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

Ical sync dynamically with google calender

I have created iCal event by using iCalcreator. I want to make the google calendar so that it syncs automatically. I can create the .ical file that I will be importing or adding by URL. After I login into Gmail it is working. How can I make my events to automatically add to calendar by using the URL dynamically?
would the feature under
other calendars
>import by URL
be what you are looking for?
provided your URL always points to the up to date calendar your google calendar will always be up to date (down to the synch frequency of google calendar) and you or anyone who you shared you google calendar url with will have access to it

Categories