Google_TimelineAttachmentsServiceResource

The "attachments" collection of methods.

Defined (1)

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

/google-api/src/contrib/Google_MirrorService.php  
  1. class Google_TimelineAttachmentsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Deletes an attachment from a timeline item. (attachments.delete) 
  6. * @param string $itemId The ID of the timeline item the attachment belongs to. 
  7. * @param string $attachmentId The ID of the attachment. 
  8. * @param array $optParams Optional parameters. 
  9. */ 
  10. public function delete($itemId, $attachmentId, $optParams = array()) { 
  11. $params = array('itemId' => $itemId, 'attachmentId' => $attachmentId); 
  12. $params = array_merge($params, $optParams); 
  13. $data = $this->__call('delete', array($params)); 
  14. return $data; 
  15. /** 
  16. * Retrieves an attachment on a timeline item by item ID and attachment ID. (attachments.get) 
  17. * @param string $itemId The ID of the timeline item the attachment belongs to. 
  18. * @param string $attachmentId The ID of the attachment. 
  19. * @param array $optParams Optional parameters. 
  20. * @return Google_Attachment 
  21. */ 
  22. public function get($itemId, $attachmentId, $optParams = array()) { 
  23. $params = array('itemId' => $itemId, 'attachmentId' => $attachmentId); 
  24. $params = array_merge($params, $optParams); 
  25. $data = $this->__call('get', array($params)); 
  26. if ($this->useObjects()) { 
  27. return new Google_Attachment($data); 
  28. } else { 
  29. return $data; 
  30. /** 
  31. * Adds a new attachment to a timeline item. (attachments.insert) 
  32. * @param string $itemId The ID of the timeline item the attachment belongs to. 
  33. * @param array $optParams Optional parameters. 
  34. * @return Google_Attachment 
  35. */ 
  36. public function insert($itemId, $optParams = array()) { 
  37. $params = array('itemId' => $itemId); 
  38. $params = array_merge($params, $optParams); 
  39. $data = $this->__call('insert', array($params)); 
  40. if ($this->useObjects()) { 
  41. return new Google_Attachment($data); 
  42. } else { 
  43. return $data; 
  44. /** 
  45. * Returns a list of attachments for a timeline item. (attachments.list) 
  46. * @param string $itemId The ID of the timeline item whose attachments should be listed. 
  47. * @param array $optParams Optional parameters. 
  48. * @return Google_AttachmentsListResponse 
  49. */ 
  50. public function listTimelineAttachments($itemId, $optParams = array()) { 
  51. $params = array('itemId' => $itemId); 
  52. $params = array_merge($params, $optParams); 
  53. $data = $this->__call('list', array($params)); 
  54. if ($this->useObjects()) { 
  55. return new Google_AttachmentsListResponse($data); 
  56. } else { 
  57. return $data;