FAQ Database Discussion Community


How can I insert data (event) into Google Calendar with PHP?

php,google-calendar,google-oauth,google-api-php-client,service-accounts
I am trying to insert events into Google Calendar, but I get errors everytime. I've been searching for hours to get answer, but I found nothing for my problem. I tested a lot of examples, without success. I'm new in Google Calendar, and I can't really understand the google api...

C# write textfile from google calendar api

c#,google-calendar
I need some help. Probably it is easy, but I don't get it. In our firestation is a screen where the alerts are shown (address, keyword, ...). When there is no alert I'd like to show upcoming events like birthdays, etc. The software running the screen needs ".txt"-files for input....

How to color code fullcalendar events based on description

javascript,calendar,fullcalendar,google-calendar,gcal
We use one calendar for the entire company that show's who has the day off. HR would like to use Blue for anyone who is in the Software department, Red for the Electronics Department and Green for the Hardware Department for the events background color. The previous developer used FullCalendar1.5.3...

How to feed a Google Calendar?

api,calendar,google-calendar,feed
I am using this sample to feed my calendar. I have created a Client ID but after I run this project I get 2 errors in console as is shown: Code: <html> <head> <script type="text/javascript"> // Your Client ID can be retrieved from your project in the Google // Developer...

Google Calendar API v3 .NET authentication with Service Account or Web Application ID

asp.net,google-api,google-calendar,google-oauth,google-api-dotnet-client
I need to connect a Google Calendar on my .NET 4.5 application (VS 2013 project). I want to get all the information from the Calendar, such as: events, dates, notes, names, guests, etc... I used the Google Developer Console to create both a Web Application Client ID and a Service...

Google calendar feed link does not respect the parameters

api,rss,google-calendar,feed
I try to use this link to show the upcoming events but there is not respect my params form link have anyone any idea how to fix this? It is showing the whole events. Even the past ones https://www.google.com/calendar/feeds/mariushincu0%40gmail.com/public/basic?singleEvents=true&orderBy=startTime&timeMin=2015-04-25T00:00:00Z...

ICS Recurrence-id range thisandfuture not changing later events

google-calendar,icalendar,recurrence
For testing I have an ics file that creates a recurring event weekly for 4 weeks. BEGIN:VCALENDAR PRODID:-//Cisa//Cisa Planningen//BE VERSION:2.0 CALSCALE:GREGORIAN BEGIN:VEVENT DTSTART;TZID=Europe/Brussels:20150508T083000 DTEND;TZID=Europe/Brussels:20150508T115000 DTSTAMP:20150518T072640Z RRULE:FREQ=WEEKLY;COUNT=4;BYDAY=FR UID:[email protected] DESCRIPTION:Commercieel Commitment PSV LOCATION:PSV STATUS:CONFIRMED SUMMARY:Rec PSV END:VEVENT END:VCALENDAR After that I want to edit the events from the third occurance (Not necesarily...

Javascript (Google Scripts) value from a function is not returning

javascript,google-apps-script,google-spreadsheet,google-calendar
I think could be a simple one to solve, I am stuck working this simple issue out. I have called a createEvent function to create a google calendar event. As part of this function I also get the google calendar event ID as EventId and want to return it. For...

Calendar.Events.delete isn't there in google app script Calendar v3

google-apps-script,google-calendar
According to: https://developers.google.com/google-apps/calendar/v3/reference/events#methods, there is a delete method. Instead, I only find a remove method. I understand the difference is that remove only takes the event off that specific calendar, whereas delete takes it off any calendar it was on. So what happened to delete? Is the documentation wrong and...

Add Google Calendar Event to non Primary calendar

javascript,google-calendar
I am trying to add an event to a newly created calendar. The calendar can be created like so: gapi.client.calendar.calendars.insert( { "resource" : {"summary": "Test Cal", "description": "test", "timezone" : "xxxx"} }); Is there anyway to now determine the calendarId? Right now an event is added to the "primary" calendar....

How the iOS built-in Calendar app sync with various calendar sources?

ios,calendar,google-calendar,caldav
I am trying to make a calendar app like sunrise and iOS Calendar app. How does iOS Calendar app syncing with various calendar sources like Google, Exchange and iCloud etc? What protocol does they use? Caldav? If I am going to make a app like that? How should I do...

Is it possible to use AuthorizationCodeMvcApp for authorization in google contacts API access?

oauth-2.0,google-calendar,google-oauth,google-contacts,google-api-dotnet-client
I am currently working on a web app where I sync the user's google contact list. Currently I am able to sync the calendar just fine. Unfortunately the same approach doesn't seem feasible in the case of contacts. Below was my approach for Calendars v3. public async Task<ActionResult> Index(CancellationToken cancellationToken)...

Hiding Events without a Description in FullCalendar + Google Calendar

jquery,fullcalendar,hide,google-calendar,information-hiding
I am using FullCalendar 2.3.1 and a Google Calendar feed. I know you can set portions of eventRender to show/hide specific portions of the event that aren't shown at default (such as adding in the Event Description on an event). I was wondering if it were possible to use a...

Search for value in variable Google Apps Script/JS

javascript,google-apps-script,google-calendar
Trying to determine if calendar events in Google Calendar were created by the user himself or if a CSV bulk upload was performed. If the script finds an ID with "CSV" somewhere in the value, then remove it. I tried to add an if statement where it looks at the...

How to get user input in string-form on a google script

google-apps-script,google-calendar
Hey guys (please help with formatting, I'm new), So I'm making a program that requires you to ask the user for an input of a date (which I will take in through them just inputting a date through MMDDYYY form). I'm just confused on how to implement this, as my...

Will EventKit automatically sync with Google Calendar or Outlook ion iOS

ios,iphone,google-calendar,eventkit
I am trying to build a calendar app and I want the events and reminders could be synced to Google Calendar and Outlook. If I added events only using EventKit SDK, and the Google Calendar account was added. Will the events automatically synced to Google Calendar? Or do I have...

how to show users their Google Calendar using PHP?

php,google-api,google-calendar
I want to try to show user google calendar on my website. I have added a code it display link to to add google calendar. Google access and return url working fine but it will showing 404 error on my website after redirect. I have also added all correct details...

Google Calendar crashes because I added an event with endTime earlier than startTime

android,calendar,google-calendar
So I added an event to my Google Calendar using the CalendarProvider according to this example. http://developer.android.com/guide/topics/providers/calendar-provider.html#add-event However, I mistakenly set the endTime as earlier than the startTime. Now when I search on my own Calendar (through the actual Google Calendar app) for an event with a similar name to...

Retrieve Google Calendar events using API v3 in javascript

javascript,jquery,calendar,google-calendar
last year I was using the code found here http://gdata-javascript-client.googlecode.com/svn/trunk/samples/calendar/simple_sample/simple_sample.html to retrieve all events from "now" of a public Google Calendar and then display the results in a webpage. I modified that code to match my needs (see the code below). Now, with API v3, the code doesn't work anymore...

Fetching Data From Google Calendar API with C#

c#,google-api,google-calendar,google-api-dotnet-client
I would like to fetch data from Google Calendar using Google Calendar API from a C# application. I have my users' emails and password so I don't need OAuth or something and I'm following this guide. Here's a sample code: FeedQuery query = new FeedQuery(); Service service = new Service("cal","company-app-v1.0");...

Google Apps Script: event.setTime error and time format

google-apps-script,google-spreadsheet,google-calendar
I'm creating something of a booking system which is nearly complete. Currently I'm collecting data from a form, passing it to a sheet, and then using some of that info to create a calendar event. This all works fine. On creating the event, I'm also collecting the eventID so that...

FullCalendar with private google calendar event

fullcalendar,google-calendar
I currently using google calendar on my website with the iframe you can insert. I tested Fullcalendar and I like what you can do with it. But I would like to do same as the embed calendar, I would like to be able to create private event (not calendar, events)....

Python Google Calendar sort by date

python,time,google-api,google-calendar
I've got a script that grabs every event off of a Google Claendar, and the searches through those events, and prints the ones that contain a search term to a file. The problem I'm having is that I need them to be put in order by date, and this doesn't...

How to export a schedule to Google Calendar?

python,django,google-calendar
I'm writing an app in Django, I would like to be able to allow users to export an event schedule to Google Calendar. I was thinking about exporting the schedule to an iCal file, but I would have to use some unpopular third party libraries, which sounds like a lot...

How can I check if a calendar with a given name already exists?

calendar,google-api,google-calendar
After the user grants me access to his calendar I would like to create a calendar dedicated to my application, so as not to litter users primary calendar. But if the same user grants the access the second time, the second calendar with the same name gets created, and so...

How to get type of reminder of Google Calendar Event object?

android,google-api,google-calendar
I'm tring to parse object of Google Calendar Event. It`s event have a reminder with type "email". But looking over all fields of this object, the field I did not find the type of reminder. It has "useDefault" paramets only. How I can to get the type of reminder? P.S:...

Access Multiple Google Calendars using Java Script - Google Calendar API

javascript,google-api,google-calendar
I have this code where I can get the event from my calendar. <html> <head> <meta charset='utf-8' /> </head> <body> <!--Add a button for the user to click to initiate auth sequence --> <button id="authorize-button" style="visibility: hidden">Authorize</button> <button id="insert-button" style="visibility: hidden">Insert</button> <script type="text/javascript"> // Enter a client ID for a...

Can't display list of upcoming events google calendar v3

google-api,google-calendar
I am trying to get the list of upcoming events from a google calendar using their v3 api. I have used the following code var eventName = ''; var today = new Date(); var iso = encodeURI(ISODateString(today)); var gclaData = 'https://www.googleapis.com/calendar/v3/calendars/[email protected]/events?singleEvents=true&maxResults=3&timeMin='+iso+'&key=AIzaSyCP4j-U4GzJri3zaADP4FM1aVsIJ0Mqhj4'; jQuery.getJSON(gclaData,function(data){ for(var i=0;i<data.items.length;i++){ var...

Can't add .ical file by url to Google, but the importing works on Outlook

c#,asp.net,google-calendar,icalendar
I'm trying to give a client url, to add his and everyone elses event in a scheduled site. The site works with fullcalendar.io, the client gets his url from the site. Example URL: http://scheduleme.catom.com/Ical/Ical.ashx?GUID=&ID=6 I Can't add .ical file by url to Google calander, but the importing works on Outlook...

Is it possible to modify event data in public google calendar using only public key?

javascript,security,google-api,google-calendar
I use public google calendar in my demo application. And I specified calendar id and public key on my html page. So, can anybody insert/update/delete my events using only public key? Or these operations are allowed only for authorized(through Auth2.0) users?...

Filtering Event List Google Calendar PHP

php,calendar,google-calendar,google-api-php-client
I am trying to fetch events that lie between certain user-given dates from a google calendar using the following code segment: form name="dates" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"> Start: <input type="date" name="start"> End: <input type="date" name="end"> <br /> <input type="submit" name="submit" value="Anzeigen"> </form> <?php if(isset($_POST['submit'])) { echo "Dates were chosen:...

Is it possible to assign the background colour of a FullCalendar event based on its title?

javascript,jquery,fullcalendar,google-calendar
As FullCalendar isn't able to read the colours that are assigned to events in Google Calendar I need to be able to style the way events are displayed based on the text content of the individual event titles. Having read as many posts as I can find on the matter,...

Embedded Google calendar not displaying unless logged into Google account

iframe,calendar,google-calendar
I'm trying to embed my Google calendar using an iframe in a small website that I am making, but it seems I can only see the calendar when I am logged into a Google account. If I log out of my Google profiles and then open the page, I just...

Multiple Google access permissions for a desktop application

c#,google-calendar,google-apps,google-contacts
I'm writing a desktop application in C# that should be able to access all users on a Google Apps "account" an retrieve calendar-events for each user. I have added the Calendar API and the Admin SDK to my "project". Both methods (below) works fine on their own but when I...

MultiDex issue - Execution failed for task ':app:dexDebug'

android,google-api,google-calendar,android-gradle,build.gradle
I face a problem while adding a line for Google Calendar API to build.gradle. Here is the error: UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]:65536 at com.android.dx.merge.DexMerger$6.updateIndex(DexMerger.java:502) at com.android.dx.merge.DexMerger$IdMerger.mergeSorted(DexMerger.java:277) at com.android.dx.merge.DexMerger.mergeMethodIds(DexMerger.java:491) at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:168) at...

Setting Date in google calendar event

java,date,datetime,google-calendar
I am trying to set start date of an event in google calendar but it keeps taking the wrong value. The code EventDateTime start = new EventDateTime(); EventDateTime end = new EventDateTime(); SimpleDateFormat df = new SimpleDateFormat("YYYY-MM-DD'T'hh:mm:ss.SSS'Z'"); Date dt = new Date(); Date endDate = new Date(); dt = df.parse("2015-05-23T09:00:00.000Z");...

How to tell if Google Calendar API attendee is a group email?

api,calendar,google-calendar
Google Calendar API makes it easy to tell if an "attendee" is actually a resource: https://developers.google.com/google-apps/calendar/v3/reference/events#resource However, how can I tell if an "attendee" is actually a group, as opposed to a single person. ie. [email protected] vs [email protected]

Google Calendar: How to check guest is not busy and available to book through google calendar

google-apps-script,google-api,google-calendar
I am exploring to write google calendar api integration through google scripts or apis. Is there a way I can check a guest is available before I book an event ?...

Import Google or iCal calendar data into a google spreadsheet

google-apps-script,google-calendar
I am trying to keep a record of google calendar entries in a google spreadsheet to further process the data. I have the following code, which I borrowed from other sources: function importEvents(){ var startOfDay = new Date(); startOfDay.setUTCHours(0); startOfDay.setMinutes(0); startOfDay.setSeconds(0); startOfDay.setMilliseconds(0); var endOfDay = new Date(startOfDay.getTime() + 24 *...

Google Calendar XML Stylesheet XSL

xml,xslt,google-calendar
Need help in parsing Google Calendar XML output using a stylesheet. Did a thorough search and tried different solutions but it seems Google might have changed their format after the recent API change. Anyone successful in getting this to work? A sample extract has been copied here: http://johnt.net/xmlextract.txt And a...

Google API and batch requests for different APIs and limites

google-api,google-calendar
The google calendar API and the google drive API allows batch requests. To do so, you need execute a POST on www.googleapis.com/batch And the body of the request contain the list of GET/POST/DELETE of your differents requests. According to https://developers.google.com/google-apps/calendar/batch and https://developers.google.com/drive/web/batch You can even group requests for multiple users...

Creating repeating event in Microsoft Outlook

calendar,outlook,google-calendar
Does anybody know how to create a repeating event in Outlook, when it is not on the same day every year? I want an event that is "Tuesday in seventh week before Easter". Is it possible to make in any other calender and move it to Outlook?...

Can I write events to Google Calendar from my android application?

android,google-calendar
Can I write from my application events to Google calendar, where I will set description of my event, and set email reminder, for get mail with my task in some time? I don't need to open calendar "edit screen", I want to set all data from my Activity, and synchronize...

Opening Google Calendar event links from within Full Calendar using Magnific Popup

fullcalendar,google-calendar,magnific-popup
I'm using Full Calendar to pull in Google Calendar information and would like to do something similar to this which populates empty elements in a hidden element when links in the calendar are clicked, and then displays it in a Bootstrap modal window, except with Magnific Popup which I'm already...

Parsing Json into a dynamic c# object with a dynamic key

c#,json,parsing,google-calendar
I'm trying to parse this Google calendar response I'm getting from their Rest API using c#, but I seem to keep getting stuck. [edited] Update, the @ symbol isn't preventing the drill down, I verified by replacing the @ with _at_. See the screenshot of the Quick watch: I'm sure...

Difference between LG default calendar and Google calendars

android,calendar,google-calendar,android-calendar,lg
On my LG-G3 there is a default calendar named "Phone". It's not Google's. I build an application which syncs events with the user's Google Calendars, but when I select all the calendars with a query - I get the "Phone" calendar too. Since it's not a Google calendar, I can't...

Google Calendar API event insert always return 404 “not found” error iOS

ios,google-calendar,google-oauth
I'm tried the calendar insert example from here : https://developers.google.com/google-apps/calendar/v3/reference/events/update No matter which property i use, i always get the 404 "not found" error. Anyone can shed some light on this? Many thanks!!! PUT https://www.googleapis.com/calendar/v3/calendars/primary/events/q4amm7fsk9rq97r3dmhisjie84&key={YOUR_API_KEY} Content-Type: application/json Request Body : { attendees = ( { email = "[email protected]"; } );...

Adding Booking Calendar to Wordpress.com Site

wordpress,google-calendar,wordpress-plugin-dev
As a disclaimer, I am totally new to wordpress, but not web programming. An acquaintance has asked me to add a booking calendar to their wordpress.com site. The calendar would allow a user to select a date for their appointment, fill out a little signup form, and then save that...

Python client library for Google Calendar API v3 insert event throwing “Missing end time” error

python,json,google-calendar,google-client
I have searched the web for the solution but it seemed I am the only one who couldn't solve this issue. So this is what my python code looks like: class ReminderDate(object): def __init__(self, datetimestring, timezone="Australia/Sydney"): self.dateTime = datetimestring self.timeZone = timezone class ReminderFormat(object): def __init__(self, useDefault=False): self.useDefault = useDefault...