Tasklists: get

Returns the authenticated user's specified task list. Try it now or see an example.

Request

HTTP request

GET https://www.googleapis.com/tasks/v1/users/@me/lists/tasklist

Parameters

Parameter name Value Description
Path parameters
tasklist string Task list identifier.

Authorization

This request requires authorization with at least one of the following scopes:

Scope
https://www.googleapis.com/auth/tasks
https://www.googleapis.com/auth/tasks.readonly

For more information, see the authentication and authorization page.

Request body

Do not supply a request body with this method.

Response

If successful, this method returns a Tasklists resource in the response body.

Examples

Note: The code examples available for this method do not represent all supported programming languages (see the client libraries page for a list of supported languages).

Java

Uses the Java client library.

TaskList taskList = service.tasklists.get("taskListID").execute();

System.out.println(taskList.getTitle());

PHP

Uses the PHP client library.

$tasklist = $service->getTasklists('taskListID');

echo $tasklist->getTitle();

Python

Uses the Python client library.

tasklist = service.tasklists().get(tasklist='tasklistID').execute()

print tasklist['title']

.NET

Uses the .NET client library.

TaskList taskList = service.Tasklists.Get("taskListID").Fetch();
Console.WriteLine(taskList.Title);

Try it!

Use the APIs Explorer below to call this method on live data and see the response. Alternatively, try the standalone Explorer.