Deletes the authenticated user's specified task list.
Returns the authenticated user's specified task list.
Creates a new task list and adds it to the authenticated user's task lists. Fails with HTTP code 403 or 429 after reaching the storage limit of 2,000 lists.
list(maxResults=None, pageToken=None)
Returns all the authenticated user's task lists.
list_next(previous_request, previous_response)
Retrieves the next page of results.
Updates the authenticated user's specified task list. This method supports patch semantics.
Updates the authenticated user's specified task list.
delete(tasklist)
Deletes the authenticated user's specified task list. Args: tasklist: string, Task list identifier. (required)
get(tasklist)
Returns the authenticated user's specified task list.
Args:
tasklist: string, Task list identifier. (required)
Returns:
An object of the form:
{
"etag": "A String", # ETag of the resource.
"id": "A String", # Task list identifier.
"kind": "tasks#taskList", # Type of the resource. This is always "tasks#taskList".
"selfLink": "A String", # URL pointing to this task list. Used to retrieve, update, or delete this task list.
"title": "A String", # Title of the task list.
"updated": "A String", # Last modification time of the task list (as a RFC 3339 timestamp).
}
insert(body=None)
Creates a new task list and adds it to the authenticated user's task lists. Fails with HTTP code 403 or 429 after reaching the storage limit of 2,000 lists.
Args:
body: object, The request body.
The object takes the form of:
{
"etag": "A String", # ETag of the resource.
"id": "A String", # Task list identifier.
"kind": "tasks#taskList", # Type of the resource. This is always "tasks#taskList".
"selfLink": "A String", # URL pointing to this task list. Used to retrieve, update, or delete this task list.
"title": "A String", # Title of the task list.
"updated": "A String", # Last modification time of the task list (as a RFC 3339 timestamp).
}
Returns:
An object of the form:
{
"etag": "A String", # ETag of the resource.
"id": "A String", # Task list identifier.
"kind": "tasks#taskList", # Type of the resource. This is always "tasks#taskList".
"selfLink": "A String", # URL pointing to this task list. Used to retrieve, update, or delete this task list.
"title": "A String", # Title of the task list.
"updated": "A String", # Last modification time of the task list (as a RFC 3339 timestamp).
}
list(maxResults=None, pageToken=None)
Returns all the authenticated user's task lists.
Args:
maxResults: string, Maximum number of task lists returned on one page. Optional. The default is 20 (max allowed: 100).
pageToken: string, Token specifying the result page to return. Optional.
Returns:
An object of the form:
{
"etag": "A String", # ETag of the resource.
"items": [ # Collection of task lists.
{
"etag": "A String", # ETag of the resource.
"id": "A String", # Task list identifier.
"kind": "tasks#taskList", # Type of the resource. This is always "tasks#taskList".
"selfLink": "A String", # URL pointing to this task list. Used to retrieve, update, or delete this task list.
"title": "A String", # Title of the task list.
"updated": "A String", # Last modification time of the task list (as a RFC 3339 timestamp).
},
],
"kind": "tasks#taskLists", # Type of the resource. This is always "tasks#taskLists".
"nextPageToken": "A String", # Token that can be used to request the next page of this result.
}
list_next(previous_request, previous_response)
Retrieves the next page of results.
Args:
previous_request: The request for the previous page. (required)
previous_response: The response from the request for the previous page. (required)
Returns:
A request object that you can call 'execute()' on to request the next
page. Returns None if there are no more items in the collection.
patch(tasklist, body=None)
Updates the authenticated user's specified task list. This method supports patch semantics.
Args:
tasklist: string, Task list identifier. (required)
body: object, The request body.
The object takes the form of:
{
"etag": "A String", # ETag of the resource.
"id": "A String", # Task list identifier.
"kind": "tasks#taskList", # Type of the resource. This is always "tasks#taskList".
"selfLink": "A String", # URL pointing to this task list. Used to retrieve, update, or delete this task list.
"title": "A String", # Title of the task list.
"updated": "A String", # Last modification time of the task list (as a RFC 3339 timestamp).
}
Returns:
An object of the form:
{
"etag": "A String", # ETag of the resource.
"id": "A String", # Task list identifier.
"kind": "tasks#taskList", # Type of the resource. This is always "tasks#taskList".
"selfLink": "A String", # URL pointing to this task list. Used to retrieve, update, or delete this task list.
"title": "A String", # Title of the task list.
"updated": "A String", # Last modification time of the task list (as a RFC 3339 timestamp).
}
update(tasklist, body=None)
Updates the authenticated user's specified task list.
Args:
tasklist: string, Task list identifier. (required)
body: object, The request body.
The object takes the form of:
{
"etag": "A String", # ETag of the resource.
"id": "A String", # Task list identifier.
"kind": "tasks#taskList", # Type of the resource. This is always "tasks#taskList".
"selfLink": "A String", # URL pointing to this task list. Used to retrieve, update, or delete this task list.
"title": "A String", # Title of the task list.
"updated": "A String", # Last modification time of the task list (as a RFC 3339 timestamp).
}
Returns:
An object of the form:
{
"etag": "A String", # ETag of the resource.
"id": "A String", # Task list identifier.
"kind": "tasks#taskList", # Type of the resource. This is always "tasks#taskList".
"selfLink": "A String", # URL pointing to this task list. Used to retrieve, update, or delete this task list.
"title": "A String", # Title of the task list.
"updated": "A String", # Last modification time of the task list (as a RFC 3339 timestamp).
}