Google_LocationsServiceResource

The "locations" collection of methods.

Defined (1)

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

/src/contrib/Google_MirrorService.php  
  1. class Google_LocationsServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * Gets a single location by ID. (locations.get) 
  5. * @param string $id The ID of the location or latest for the last known location. 
  6. * @param array $optParams Optional parameters. 
  7. * @return Google_Location 
  8. */ 
  9. public function get($id, $optParams = array()) { 
  10. $params = array('id' => $id); 
  11. $params = array_merge($params, $optParams); 
  12. $data = $this->__call('get', array($params)); 
  13. if ($this->useObjects()) { 
  14. return new Google_Location($data); 
  15. } else { 
  16. return $data; 
  17. /** 
  18. * Retrieves a list of locations for the user. (locations.list) 
  19. * @param array $optParams Optional parameters. 
  20. * @return Google_LocationsListResponse 
  21. */ 
  22. public function listLocations($optParams = array()) { 
  23. $params = array(); 
  24. $params = array_merge($params, $optParams); 
  25. $data = $this->__call('list', array($params)); 
  26. if ($this->useObjects()) { 
  27. return new Google_LocationsListResponse($data); 
  28. } else { 
  29. return $data;