class Tasklists extends Resource (View source)

The "tasklists" collection of methods.

Typical usage is:

 $tasksService = new Google\Service\Tasks(...);
 $tasklists = $tasksService->tasklists;

Methods

delete(string $tasklist, array $optParams = [])

Deletes the authenticated user's specified task list. If the list contains assigned tasks, both the assigned tasks and the original tasks in the assignment surface (Docs, Chat Spaces) are deleted. (tasklists.delete)

get(string $tasklist, array $optParams = [])

Returns the authenticated user's specified task list. (tasklists.get)

insert(TaskList $postBody, array $optParams = [])

Creates a new task list and adds it to the authenticated user's task lists. A user can have up to 2000 lists at a time. (tasklists.insert)

listTasklists(array $optParams = [])

Returns all the authenticated user's task lists. A user can have up to 2000 lists at a time. (tasklists.listTasklists)

patch(string $tasklist, TaskList $postBody, array $optParams = [])

Updates the authenticated user's specified task list. This method supports patch semantics. (tasklists.patch)

update(string $tasklist, TaskList $postBody, array $optParams = [])

Updates the authenticated user's specified task list. (tasklists.update)

Details

delete(string $tasklist, array $optParams = [])

Deletes the authenticated user's specified task list. If the list contains assigned tasks, both the assigned tasks and the original tasks in the assignment surface (Docs, Chat Spaces) are deleted. (tasklists.delete)

Parameters

string $tasklist

Task list identifier.

array $optParams

Optional parameters.

Exceptions

Exception

TaskList get(string $tasklist, array $optParams = [])

Returns the authenticated user's specified task list. (tasklists.get)

Parameters

string $tasklist

Task list identifier.

array $optParams

Optional parameters.

Return Value

TaskList

Exceptions

Exception

TaskList insert(TaskList $postBody, array $optParams = [])

Creates a new task list and adds it to the authenticated user's task lists. A user can have up to 2000 lists at a time. (tasklists.insert)

Parameters

TaskList $postBody
array $optParams

Optional parameters.

Return Value

TaskList

Exceptions

Exception

TaskLists listTasklists(array $optParams = [])

Returns all the authenticated user's task lists. A user can have up to 2000 lists at a time. (tasklists.listTasklists)

Parameters

array $optParams

Optional parameters.

Return Value

TaskLists

Exceptions

Exception

TaskList patch(string $tasklist, TaskList $postBody, array $optParams = [])

Updates the authenticated user's specified task list. This method supports patch semantics. (tasklists.patch)

Parameters

string $tasklist

Task list identifier.

TaskList $postBody
array $optParams

Optional parameters.

Return Value

TaskList

Exceptions

Exception

TaskList update(string $tasklist, TaskList $postBody, array $optParams = [])

Updates the authenticated user's specified task list. (tasklists.update)

Parameters

string $tasklist

Task list identifier.

TaskList $postBody
array $optParams

Optional parameters.

Return Value

TaskList

Exceptions

Exception