The "tasks" collection of methods. Typical usage is:
$tasksService = new Google_Service_Tasks(...);
$tasks = $tasksService->tasks;
Methods summary
public
|
#
clear( string $tasklist, array $optParams = array() )
Clears all completed tasks from the specified task list. The affected tasks
will be marked as 'hidden' and no longer be returned by default when retrieving
all tasks for a task list. (tasks.clear)
Clears all completed tasks from the specified task list. The affected tasks
will be marked as 'hidden' and no longer be returned by default when retrieving
all tasks for a task list. (tasks.clear)
Parameters
- $tasklist
- Task list identifier.
- $optParams
- Optional parameters.
|
public
|
#
delete( string $tasklist, string $task, array $optParams = array() )
Deletes the specified task from the task list. (tasks.delete)
Deletes the specified task from the task list. (tasks.delete)
Parameters
- $tasklist
- Task list identifier.
- $task
- Task identifier.
- $optParams
- Optional parameters.
|
public
Google_Service_Tasks_Task
|
#
get( string $tasklist, string $task, array $optParams = array() )
Returns the specified task. (tasks.get)
Returns the specified task. (tasks.get)
Parameters
- $tasklist
- Task list identifier.
- $task
- Task identifier.
- $optParams
- Optional parameters.
Returns
|
public
Google_Service_Tasks_Task
|
#
insert( string $tasklist, Google_Service_Tasks_Task $postBody, array $optParams = array() )
Creates a new task on the specified task list. Fails with HTTP code 403 or
429 after reaching the storage limit of 100,000 tasks per account.
(tasks.insert)
Creates a new task on the specified task list. Fails with HTTP code 403 or
429 after reaching the storage limit of 100,000 tasks per account.
(tasks.insert)
Parameters
- $tasklist
- Task list identifier.
- $postBody
- $optParams
- Optional parameters.
Returns
Opt_param
string parent Parent task identifier. If the task is created at the top level,
this parameter is omitted. Optional.
string previous Previous sibling task identifier. If the task is created at the
first position among its siblings, this parameter is omitted. Optional.
|
public
Google_Service_Tasks_Tasks
|
#
listTasks( string $tasklist, array $optParams = array() )
Returns all tasks in the specified task list. (tasks.listTasks)
Returns all tasks in the specified task list. (tasks.listTasks)
Parameters
- $tasklist
- Task list identifier.
- $optParams
- Optional parameters.
Returns
Opt_param
string completedMax Upper bound for a task's completion date (as a RFC 3339
timestamp) to filter by. Optional. The default is not to filter by completion
date.
string completedMin Lower bound for a task's completion date (as a RFC 3339
timestamp) to filter by. Optional. The default is not to filter by completion
date.
string dueMax Upper bound for a task's due date (as a RFC 3339 timestamp) to
filter by. Optional. The default is not to filter by due date.
string dueMin Lower bound for a task's due date (as a RFC 3339 timestamp) to
filter by. Optional. The default is not to filter by due date.
string maxResults Maximum number of task lists returned on one page. Optional.
The default is 20 (max allowed: 100).
string pageToken Token specifying the result page to return. Optional.
bool showCompleted Flag indicating whether completed tasks are returned in the
result. Optional. The default is True.
bool showDeleted Flag indicating whether deleted tasks are returned in the
result. Optional. The default is False.
bool showHidden Flag indicating whether hidden tasks are returned in the result.
Optional. The default is False.
string updatedMin Lower bound for a task's last modification time (as a RFC 3339
timestamp) to filter by. Optional. The default is not to filter by last
modification time.
|
public
Google_Service_Tasks_Task
|
#
move( string $tasklist, string $task, array $optParams = array() )
Moves the specified task to another position in the task list. This can
include putting it as a child task under a new parent and/or move it to a
different position among its sibling tasks. (tasks.move)
Moves the specified task to another position in the task list. This can
include putting it as a child task under a new parent and/or move it to a
different position among its sibling tasks. (tasks.move)
Parameters
- $tasklist
- Task list identifier.
- $task
- Task identifier.
- $optParams
- Optional parameters.
Returns
Opt_param
string parent New parent task identifier. If the task is moved to the top level,
this parameter is omitted. Optional.
string previous New previous sibling task identifier. If the task is moved to
the first position among its siblings, this parameter is omitted. Optional.
|
public
Google_Service_Tasks_Task
|
#
patch( string $tasklist, string $task, Google_Service_Tasks_Task $postBody, array $optParams = array() )
Updates the specified task. This method supports patch semantics.
(tasks.patch)
Updates the specified task. This method supports patch semantics.
(tasks.patch)
Parameters
- $tasklist
- Task list identifier.
- $task
- Task identifier.
- $postBody
- $optParams
- Optional parameters.
Returns
|
public
Google_Service_Tasks_Task
|
#
update( string $tasklist, string $task, Google_Service_Tasks_Task $postBody, array $optParams = array() )
Updates the specified task. (tasks.update)
Updates the specified task. (tasks.update)
Parameters
- $tasklist
- Task list identifier.
- $task
- Task identifier.
- $postBody
- $optParams
- Optional parameters.
Returns
|