Google Apps Platform

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

Using the Google APIs Client Library for PHP requires that you download the PHP source. In the future, packages will be provided. Refer to the project page for more details.

Run the following commands to download and install the source:

$ svn checkout http://google-api-php-client.googlecode.com/svn/trunk/ google-api-php-client-read-only
$ cd google-api-php-read-only
$ # Copy the src directory to your working directory.

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

require_once "../src/apiClient.php";
require_once "../src/contrib/apiCalendarService.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'

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.