* Manages your tasks and task lists.
* ** For more information about this service, see the API * Documentation *
* * @author Google, Inc. */ class Google_Service_Tasks extends Google_Service { /** Create, edit, organize, and delete all your tasks. */ const TASKS = "https://www.googleapis.com/auth/tasks"; /** View your tasks. */ const TASKS_READONLY = "https://www.googleapis.com/auth/tasks.readonly"; public $tasklists; public $tasks; /** * Constructs the internal representation of the Tasks service. * * @param Google_Client $client */ public function __construct(Google_Client $client) { parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'tasks/v1/'; $this->batchPath = 'batch/tasks/v1'; $this->version = 'v1'; $this->serviceName = 'tasks'; $this->tasklists = new Google_Service_Tasks_Resource_Tasklists( $this, $this->serviceName, 'tasklists', array( 'methods' => array( 'delete' => array( 'path' => 'users/@me/lists/{tasklist}', 'httpMethod' => 'DELETE', 'parameters' => array( 'tasklist' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'users/@me/lists/{tasklist}', 'httpMethod' => 'GET', 'parameters' => array( 'tasklist' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'insert' => array( 'path' => 'users/@me/lists', 'httpMethod' => 'POST', 'parameters' => array(), ),'list' => array( 'path' => 'users/@me/lists', 'httpMethod' => 'GET', 'parameters' => array( 'maxResults' => array( 'location' => 'query', 'type' => 'string', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), ), ),'patch' => array( 'path' => 'users/@me/lists/{tasklist}', 'httpMethod' => 'PATCH', 'parameters' => array( 'tasklist' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'update' => array( 'path' => 'users/@me/lists/{tasklist}', 'httpMethod' => 'PUT', 'parameters' => array( 'tasklist' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->tasks = new Google_Service_Tasks_Resource_Tasks( $this, $this->serviceName, 'tasks', array( 'methods' => array( 'clear' => array( 'path' => 'lists/{tasklist}/clear', 'httpMethod' => 'POST', 'parameters' => array( 'tasklist' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'delete' => array( 'path' => 'lists/{tasklist}/tasks/{task}', 'httpMethod' => 'DELETE', 'parameters' => array( 'tasklist' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'task' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'lists/{tasklist}/tasks/{task}', 'httpMethod' => 'GET', 'parameters' => array( 'tasklist' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'task' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'insert' => array( 'path' => 'lists/{tasklist}/tasks', 'httpMethod' => 'POST', 'parameters' => array( 'tasklist' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'parent' => array( 'location' => 'query', 'type' => 'string', ), 'previous' => array( 'location' => 'query', 'type' => 'string', ), ), ),'list' => array( 'path' => 'lists/{tasklist}/tasks', 'httpMethod' => 'GET', 'parameters' => array( 'tasklist' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'completedMax' => array( 'location' => 'query', 'type' => 'string', ), 'completedMin' => array( 'location' => 'query', 'type' => 'string', ), 'dueMax' => array( 'location' => 'query', 'type' => 'string', ), 'dueMin' => array( 'location' => 'query', 'type' => 'string', ), 'maxResults' => array( 'location' => 'query', 'type' => 'string', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'showCompleted' => array( 'location' => 'query', 'type' => 'boolean', ), 'showDeleted' => array( 'location' => 'query', 'type' => 'boolean', ), 'showHidden' => array( 'location' => 'query', 'type' => 'boolean', ), 'updatedMin' => array( 'location' => 'query', 'type' => 'string', ), ), ),'move' => array( 'path' => 'lists/{tasklist}/tasks/{task}/move', 'httpMethod' => 'POST', 'parameters' => array( 'tasklist' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'task' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'parent' => array( 'location' => 'query', 'type' => 'string', ), 'previous' => array( 'location' => 'query', 'type' => 'string', ), ), ),'patch' => array( 'path' => 'lists/{tasklist}/tasks/{task}', 'httpMethod' => 'PATCH', 'parameters' => array( 'tasklist' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'task' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'update' => array( 'path' => 'lists/{tasklist}/tasks/{task}', 'httpMethod' => 'PUT', 'parameters' => array( 'tasklist' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'task' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); } }