Google_TasklistsServiceResource

The "tasklists" collection of methods.

Defined (1)

The class is defined in the following location(s).

/google-api/src/contrib/Google_TasksService.php  
  1. class Google_TasklistsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Creates a new task list and adds it to the authenticated user's task lists. (tasklists.insert) 
  6. * @param Google_TaskList $postBody 
  7. * @param array $optParams Optional parameters. 
  8. * @return Google_TaskList 
  9. */ 
  10. public function insert(Google_TaskList $postBody, $optParams = array()) { 
  11. $params = array('postBody' => $postBody); 
  12. $params = array_merge($params, $optParams); 
  13. $data = $this->__call('insert', array($params)); 
  14. if ($this->useObjects()) { 
  15. return new Google_TaskList($data); 
  16. } else { 
  17. return $data; 
  18. /** 
  19. * Returns the authenticated user's specified task list. (tasklists.get) 
  20. * @param string $tasklist Task list identifier. 
  21. * @param array $optParams Optional parameters. 
  22. * @return Google_TaskList 
  23. */ 
  24. public function get($tasklist, $optParams = array()) { 
  25. $params = array('tasklist' => $tasklist); 
  26. $params = array_merge($params, $optParams); 
  27. $data = $this->__call('get', array($params)); 
  28. if ($this->useObjects()) { 
  29. return new Google_TaskList($data); 
  30. } else { 
  31. return $data; 
  32. /** 
  33. * Returns all the authenticated user's task lists. (tasklists.list) 
  34. * @param array $optParams Optional parameters. 
  35. * @opt_param string pageToken Token specifying the result page to return. Optional. 
  36. * @opt_param string maxResults Maximum number of task lists returned on one page. Optional. The default is 100. 
  37. * @return Google_TaskLists 
  38. */ 
  39. public function listTasklists($optParams = array()) { 
  40. $params = array(); 
  41. $params = array_merge($params, $optParams); 
  42. $data = $this->__call('list', array($params)); 
  43. if ($this->useObjects()) { 
  44. return new Google_TaskLists($data); 
  45. } else { 
  46. return $data; 
  47. /** 
  48. * Updates the authenticated user's specified task list. (tasklists.update) 
  49. * @param string $tasklist Task list identifier. 
  50. * @param Google_TaskList $postBody 
  51. * @param array $optParams Optional parameters. 
  52. * @return Google_TaskList 
  53. */ 
  54. public function update($tasklist, Google_TaskList $postBody, $optParams = array()) { 
  55. $params = array('tasklist' => $tasklist, 'postBody' => $postBody); 
  56. $params = array_merge($params, $optParams); 
  57. $data = $this->__call('update', array($params)); 
  58. if ($this->useObjects()) { 
  59. return new Google_TaskList($data); 
  60. } else { 
  61. return $data; 
  62. /** 
  63. * Updates the authenticated user's specified task list. This method supports patch semantics. 
  64. * (tasklists.patch) 
  65. * @param string $tasklist Task list identifier. 
  66. * @param Google_TaskList $postBody 
  67. * @param array $optParams Optional parameters. 
  68. * @return Google_TaskList 
  69. */ 
  70. public function patch($tasklist, Google_TaskList $postBody, $optParams = array()) { 
  71. $params = array('tasklist' => $tasklist, 'postBody' => $postBody); 
  72. $params = array_merge($params, $optParams); 
  73. $data = $this->__call('patch', array($params)); 
  74. if ($this->useObjects()) { 
  75. return new Google_TaskList($data); 
  76. } else { 
  77. return $data; 
  78. /** 
  79. * Deletes the authenticated user's specified task list. (tasklists.delete) 
  80. * @param string $tasklist Task list identifier. 
  81. * @param array $optParams Optional parameters. 
  82. */ 
  83. public function delete($tasklist, $optParams = array()) { 
  84. $params = array('tasklist' => $tasklist); 
  85. $params = array_merge($params, $optParams); 
  86. $data = $this->__call('delete', array($params)); 
  87. return $data;