Google_Service_Webmasters_Sites_Resource

The "sites" collection of methods.

Defined (1)

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

/includes/api-libs/Google/Service/Webmasters.php  
  1. class Google_Service_Webmasters_Sites_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Adds a site to the set of the user's sites in Webmaster Tools. (sites.add) 
  5. * @param string $siteUrl The URL of the site to add. 
  6. * @param array $optParams Optional parameters. 
  7. */ 
  8. public function add($siteUrl, $optParams = array()) 
  9. $params = array('siteUrl' => $siteUrl); 
  10. $params = array_merge($params, $optParams); 
  11. return $this->call('add', array($params)); 
  12.  
  13. /** 
  14. * Removes a site from the set of the user's Webmaster Tools sites. 
  15. * (sites.delete) 
  16. * @param string $siteUrl The site's URL, including protocol, for example 
  17. * 'http://www.example.com/' 
  18. * @param array $optParams Optional parameters. 
  19. */ 
  20. public function delete($siteUrl, $optParams = array()) 
  21. $params = array('siteUrl' => $siteUrl); 
  22. $params = array_merge($params, $optParams); 
  23. return $this->call('delete', array($params)); 
  24.  
  25. /** 
  26. * Retrieves information about specific site. (sites.get) 
  27. * @param string $siteUrl The site's URL, including protocol, for example 
  28. * 'http://www.example.com/' 
  29. * @param array $optParams Optional parameters. 
  30. * @return Google_Service_Webmasters_WmxSite 
  31. */ 
  32. public function get($siteUrl, $optParams = array()) 
  33. $params = array('siteUrl' => $siteUrl); 
  34. $params = array_merge($params, $optParams); 
  35. return $this->call('get', array($params), "Google_Service_Webmasters_WmxSite"); 
  36.  
  37. /** 
  38. * Lists your Webmaster Tools sites. (sites.listSites) 
  39. * @param array $optParams Optional parameters. 
  40. * @return Google_Service_Webmasters_SitesListResponse 
  41. */ 
  42. public function listSites($optParams = array()) 
  43. $params = array(); 
  44. $params = array_merge($params, $optParams); 
  45. return $this->call('list', array($params), "Google_Service_Webmasters_SitesListResponse");