Google Apps Platform

Google Apps Tasks API: Set up a Client Library

How 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 the Google Tasks 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 Tasks API library .jar file Lists the latest .jar file for the Google Tasks 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.tasks.Tasks;
import com.google.api.services.tasks.model.*;

Python


Using the Google APIs Client Library for Python requires that you download the Python 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:

$ hg clone https://google-api-python-client.googlecode.com/hg/ google-api-python-client
$ cd google-api-python-client
$ sudo python setup.py install

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

from apiclient.discovery import build
from apiclient.oauth import OAuthCredentials

import httplib2
import oauth2 as oauth

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/apiTasksService.php";

.NET

Install the Google Tasks NuGet package.

Authentication required

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

Signing you in...

Google Developers needs your permission to do that.