Google_TimelineServiceResource

The "timeline" collection of methods.

Defined (1)

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

/google-api/src/contrib/Google_MirrorService.php  
  1. class Google_TimelineServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Deletes a timeline item. (timeline.delete) 
  6. * @param string $id The ID of the timeline item. 
  7. * @param array $optParams Optional parameters. 
  8. */ 
  9. public function delete($id, $optParams = array()) { 
  10. $params = array('id' => $id); 
  11. $params = array_merge($params, $optParams); 
  12. $data = $this->__call('delete', array($params)); 
  13. return $data; 
  14. /** 
  15. * Gets a single timeline item by ID. (timeline.get) 
  16. * @param string $id The ID of the timeline item. 
  17. * @param array $optParams Optional parameters. 
  18. * @return Google_TimelineItem 
  19. */ 
  20. public function get($id, $optParams = array()) { 
  21. $params = array('id' => $id); 
  22. $params = array_merge($params, $optParams); 
  23. $data = $this->__call('get', array($params)); 
  24. if ($this->useObjects()) { 
  25. return new Google_TimelineItem($data); 
  26. } else { 
  27. return $data; 
  28. /** 
  29. * Inserts a new item into the timeline. (timeline.insert) 
  30. * @param Google_TimelineItem $postBody 
  31. * @param array $optParams Optional parameters. 
  32. * @return Google_TimelineItem 
  33. */ 
  34. public function insert(Google_TimelineItem $postBody, $optParams = array()) { 
  35. $params = array('postBody' => $postBody); 
  36. $params = array_merge($params, $optParams); 
  37. $data = $this->__call('insert', array($params)); 
  38. if ($this->useObjects()) { 
  39. return new Google_TimelineItem($data); 
  40. } else { 
  41. return $data; 
  42. /** 
  43. * Retrieves a list of timeline items for the authenticated user. (timeline.list) 
  44. * @param array $optParams Optional parameters. 
  45. * @opt_param string orderBy Controls the order in which timeline items are returned. 
  46. * @opt_param bool includeDeleted If true, tombstone records for deleted items will be returned. 
  47. * @opt_param string maxResults The maximum number of items to include in the response, used for paging. 
  48. * @opt_param string pageToken Token for the page of results to return. 
  49. * @opt_param string sourceItemId If provided, only items with the given sourceItemId will be returned. 
  50. * @opt_param bool pinnedOnly If true, only pinned items will be returned. 
  51. * @opt_param string bundleId If provided, only items with the given bundleId will be returned. 
  52. * @return Google_TimelineListResponse 
  53. */ 
  54. public function listTimeline($optParams = array()) { 
  55. $params = array(); 
  56. $params = array_merge($params, $optParams); 
  57. $data = $this->__call('list', array($params)); 
  58. if ($this->useObjects()) { 
  59. return new Google_TimelineListResponse($data); 
  60. } else { 
  61. return $data; 
  62. /** 
  63. * Updates a timeline item in place. This method supports patch semantics. (timeline.patch) 
  64. * @param string $id The ID of the timeline item. 
  65. * @param Google_TimelineItem $postBody 
  66. * @param array $optParams Optional parameters. 
  67. * @return Google_TimelineItem 
  68. */ 
  69. public function patch($id, Google_TimelineItem $postBody, $optParams = array()) { 
  70. $params = array('id' => $id, 'postBody' => $postBody); 
  71. $params = array_merge($params, $optParams); 
  72. $data = $this->__call('patch', array($params)); 
  73. if ($this->useObjects()) { 
  74. return new Google_TimelineItem($data); 
  75. } else { 
  76. return $data; 
  77. /** 
  78. * Updates a timeline item in place. (timeline.update) 
  79. * @param string $id The ID of the timeline item. 
  80. * @param Google_TimelineItem $postBody 
  81. * @param array $optParams Optional parameters. 
  82. * @return Google_TimelineItem 
  83. */ 
  84. public function update($id, Google_TimelineItem $postBody, $optParams = array()) { 
  85. $params = array('id' => $id, 'postBody' => $postBody); 
  86. $params = array_merge($params, $optParams); 
  87. $data = $this->__call('update', array($params)); 
  88. if ($this->useObjects()) { 
  89. return new Google_TimelineItem($data); 
  90. } else { 
  91. return $data;