Questions tagged [google-calendar-api]

Questions related to interacting programmatically with Google Calendar calendars and events. A language tag should also be included, e.g. [google-apps-script]. Questions about general use of Google Apps should be posted on Web Applications Stack Exchange.

Google Calendar is a cloud-based application and service for personal calendar management. The service supports an API for Google Apps Script, and an API for integrating with applications written in a variety of technologies (currently Java, Python, PHP, .NET, Android, Go, iOS, JavaScript, Node.js, and Ruby).

The tag should be applied to questions related to interacting programmatically with the Google Calendar service or problems with Google's API for same. An additional language tag should also be included, representing the primary application implementation language in the question, e.g. , , or .

Usage questions about the web application should be posted at Web Applications Stack Exchange instead of here.

Documentation

Quickstarts

Step-by-step tutorials and examples to get started, for each supported technology.

Other resources

7083 questions
21
votes
3 answers

Google Calendar API v3 - authenticate with hardcoded credentials

I am writing a PHP application that's supposed to allow users to add certain events to a private Google Calendar. The calendar is owned by me, and I need a way for PHP to communicate with the calendar API using fixed credentials (everyone can add…
21
votes
0 answers

Google calendar event description html in apple calendar

I have created an event via the google calendar API. In the description of the event I have added html code, which is shown fine in google calendar. In the apple calendar, which I have synced with my google account, the description ( shown as notes…
manosagent
  • 614
  • 8
  • 18
21
votes
3 answers

Google Apps Calendar shows "Busy" instead of sharing full, more details

We're building a multi-user platform where each registered user has a Google App account with their e-mail and calendar. People can add to the events to the calendar, but the entry always show "Busy" instead of displaying the full event…
Tomer Lichtash
  • 9,002
  • 16
  • 55
  • 71
20
votes
2 answers

How do I create an Out of office type Calendar Event via the REST API?

Google Calendar has a new event type called "Out of office" that automatically will decline any events it is placed over and others that come in during the scheduled time of the event. I inspected one of these event objects via the API and briefly…
Kyle Hayes
  • 5,225
  • 8
  • 38
  • 53
20
votes
10 answers

Android Format date with time zone

I need to format the date into a specific string. I used SimpleDateFormat class to format the date using the pattern "yyyy-MM-dd'T'HH:mm:ssZ" it returns current date as "2013-01-04T15:51:45+0530" but I need as "2013-01-04T15:51:45+05:30". Below is…
fargath
  • 7,844
  • 6
  • 24
  • 36
20
votes
2 answers

URL Scheme to Trigger Calendar Client

I have a website that generates dynamic calendar (icalendar). Lets assume that this calendar is accessible over HTTP at a URL like this http://www.example.com/cal?q= Everything works fine so far. Now I want to let the users subscribe…
Gilad
  • 538
  • 5
  • 16
20
votes
6 answers

Authentication on google: OAuth2 keeps returning 'invalid_grant'

I started to configure google calendar on my new application. I almost made an exact copy of the authentication code displayed at google developers ( https://developers.google.com/google-apps/calendar/instantiate ), but i keep getting the following…
Michiel
  • 201
  • 1
  • 2
  • 5
19
votes
6 answers

"Login Required" 401 Unauthorized message when calling the v3 Google Calendar API using a Service Account via OAuth 2.0

First, let me explain what I am trying to do, as this is a two part question. I am building a JAX-RS service that internally authenticates with a Google account via OAuth2, so it can access and manipulate a Google calendar. This service will be…
18
votes
1 answer

How to automate login to Google API to get OAuth 2.0 token to access known user account

Ok, so this question has been asked before here. In the response/answer to the question, the user tells him to store the refresh_token in the application (session and not db, although it doesn't matter where you store it). After going through the…
keyser_sozay
  • 267
  • 1
  • 2
  • 9
18
votes
4 answers

Google Calendar API v3 - How to obtain a refresh token (Python)

I am trying to write a Django app which creates events in a specific Google calendar. So far I have been successful. There is only a little problem: I don't know how to obtain a refresh token with the google python client. The result is that after…
Jens
  • 20,533
  • 11
  • 60
  • 86
18
votes
9 answers

Google API Client "refresh token must be passed in or set as part of setAccessToken"

I am currently facing a very strange problem, indeed I've been following this very same guide (https://developers.google.com/google-apps/calendar/quickstart/php) from Google API documentation. I tried it twice, at the first time it work like a charm…
18
votes
6 answers

Google Client API - Missing require parameter: redirect_uri

So I followed the quickstart guide and decided to break it into a class called scheduler. I am working on the the authentication code, but I keep getting this: "Error 400 (OAuth 2 Error) Error Invalid Request Missing required Parameter:…
Joshua Blevins
  • 689
  • 1
  • 10
  • 27
18
votes
1 answer

How to handle Google Calendar API push notifications?

I can't seem to make sense of this article. I'm trying to create 2-way syncing of events between my web app and Google Calendar. I've got my events successfully syncing to Google Calendar, but the push notifications Google sends me aren't of any…
mpen
  • 272,448
  • 266
  • 850
  • 1,236
18
votes
5 answers

Google Calendar API v3 Access Not Configured

I'm trying to get a list of events from a client's public calendar using v3 of Google's API. I entered the Calendar ID into the API Explorer, and I'm getting a positive…
sea_monster
  • 659
  • 3
  • 8
  • 18
18
votes
2 answers

Inserting Google Calendar Entries with Service Account

I'm trying to use a service account to create entries on a Google calendar. I'm really close on this, but the very last line won't work. I get a 500 Internal Service Error when I let this run. Otherwise, the program runs error free, for whatever…
AndroidDev
  • 20,466
  • 42
  • 148
  • 239