Google_Service_Mirror_Contacts_Resource

The "contacts" collection of methods.

Defined (1)

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

/includes/api-libs/Google/Service/Mirror.php  
  1. class Google_Service_Mirror_Contacts_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Deletes a contact. (contacts.delete) 
  5. * @param string $id The ID of the contact. 
  6. * @param array $optParams Optional parameters. 
  7. */ 
  8. public function delete($id, $optParams = array()) 
  9. $params = array('id' => $id); 
  10. $params = array_merge($params, $optParams); 
  11. return $this->call('delete', array($params)); 
  12.  
  13. /** 
  14. * Gets a single contact by ID. (contacts.get) 
  15. * @param string $id The ID of the contact. 
  16. * @param array $optParams Optional parameters. 
  17. * @return Google_Service_Mirror_Contact 
  18. */ 
  19. public function get($id, $optParams = array()) 
  20. $params = array('id' => $id); 
  21. $params = array_merge($params, $optParams); 
  22. return $this->call('get', array($params), "Google_Service_Mirror_Contact"); 
  23.  
  24. /** 
  25. * Inserts a new contact. (contacts.insert) 
  26. * @param Google_Contact $postBody 
  27. * @param array $optParams Optional parameters. 
  28. * @return Google_Service_Mirror_Contact 
  29. */ 
  30. public function insert(Google_Service_Mirror_Contact $postBody, $optParams = array()) 
  31. $params = array('postBody' => $postBody); 
  32. $params = array_merge($params, $optParams); 
  33. return $this->call('insert', array($params), "Google_Service_Mirror_Contact"); 
  34.  
  35. /** 
  36. * Retrieves a list of contacts for the authenticated user. 
  37. * (contacts.listContacts) 
  38. * @param array $optParams Optional parameters. 
  39. * @return Google_Service_Mirror_ContactsListResponse 
  40. */ 
  41. public function listContacts($optParams = array()) 
  42. $params = array(); 
  43. $params = array_merge($params, $optParams); 
  44. return $this->call('list', array($params), "Google_Service_Mirror_ContactsListResponse"); 
  45.  
  46. /** 
  47. * Updates a contact in place. This method supports patch semantics. 
  48. * (contacts.patch) 
  49. * @param string $id The ID of the contact. 
  50. * @param Google_Contact $postBody 
  51. * @param array $optParams Optional parameters. 
  52. * @return Google_Service_Mirror_Contact 
  53. */ 
  54. public function patch($id, Google_Service_Mirror_Contact $postBody, $optParams = array()) 
  55. $params = array('id' => $id, 'postBody' => $postBody); 
  56. $params = array_merge($params, $optParams); 
  57. return $this->call('patch', array($params), "Google_Service_Mirror_Contact"); 
  58.  
  59. /** 
  60. * Updates a contact in place. (contacts.update) 
  61. * @param string $id The ID of the contact. 
  62. * @param Google_Contact $postBody 
  63. * @param array $optParams Optional parameters. 
  64. * @return Google_Service_Mirror_Contact 
  65. */ 
  66. public function update($id, Google_Service_Mirror_Contact $postBody, $optParams = array()) 
  67. $params = array('id' => $id, 'postBody' => $postBody); 
  68. $params = array_merge($params, $optParams); 
  69. return $this->call('update', array($params), "Google_Service_Mirror_Contact");