Hide
Google Calendar API

Set up a Client Library

The process to set up a client library varies by programming language. Select the tab for the language you're using for development. If you are using a language not available here, see the complete table list of available Downloads.

Java

Using the Google APIs Client Library for Java requires that you download the core Java client library and the Google Calendar API Java library .jar files. Download the files and include them in your build path:

Core client library .jar files Lists the latest .jar files for the Google APIs Client Library for Java.
Google Calendar API library .jar file Lists the latest .jar file for the Google Calendar API library for Java.

You can now import the classes you will need using the following statements:

import com.google.api.client.http.HttpTransport;
import com.google.api.client.http.javanet.NetHttpTransport;
import com.google.api.client.json.jackson.JacksonFactory;
import com.google.api.services.calendar.Calendar;
import com.google.api.services.calendar.model.*;

Python

To install the Google API Python Client on a system, you must use either the pip command or easy_install command.

easy_install --upgrade google-api-python-client

pip install --upgrade google-api-python-client

You can now import the classes you will need using the following statements:

from apiclient.discovery import build
from oauth2client.client import OAuth2WebServerFlow

import httplib2

If you need to access the Google API Python Client from a Google App Engine project, you can follow the instructions here.

PHP

There are multiple ways to install the Google APIs Client Library for PHP. See the installation page for the details. One method is to clone the github repository, as shown below.

$ git clone https://github.com/google/google-api-php-client.git google-api-php-client

You can now import the classes you will need using the following statement:

require_once 'google-api-php-client/autoload.php';

.NET

Install the Google Calendar NuGet package.

Ruby

We recommend using RVM to configure and manage your Ruby and gem installation. Once you have RVM installed, proceed to install the google-api-client gem:

gem install google-api-client

You can now import the classes you will need using the following import statements:

require 'rubygems'
require 'google/api_client'