Google_Service_Webmasters_Sitemaps_Resource

The "sitemaps" 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_Sitemaps_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Deletes a sitemap from this site. (sitemaps.delete) 
  5. * @param string $siteUrl The site's URL, including protocol, for example 
  6. * 'http://www.example.com/' 
  7. * @param string $feedpath The URL of the actual sitemap (for example 
  8. * http://www.example.com/sitemap.xml). 
  9. * @param array $optParams Optional parameters. 
  10. */ 
  11. public function delete($siteUrl, $feedpath, $optParams = array()) 
  12. $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath); 
  13. $params = array_merge($params, $optParams); 
  14. return $this->call('delete', array($params)); 
  15.  
  16. /** 
  17. * Retrieves information about a specific sitemap. (sitemaps.get) 
  18. * @param string $siteUrl The site's URL, including protocol, for example 
  19. * 'http://www.example.com/' 
  20. * @param string $feedpath The URL of the actual sitemap (for example 
  21. * http://www.example.com/sitemap.xml). 
  22. * @param array $optParams Optional parameters. 
  23. * @return Google_Service_Webmasters_WmxSitemap 
  24. */ 
  25. public function get($siteUrl, $feedpath, $optParams = array()) 
  26. $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath); 
  27. $params = array_merge($params, $optParams); 
  28. return $this->call('get', array($params), "Google_Service_Webmasters_WmxSitemap"); 
  29.  
  30. /** 
  31. * Lists sitemaps uploaded to the site. (sitemaps.listSitemaps) 
  32. * @param string $siteUrl The site's URL, including protocol, for example 
  33. * 'http://www.example.com/' 
  34. * @param array $optParams Optional parameters. 
  35. * @opt_param string sitemapIndex A URL of a site's sitemap index. 
  36. * @return Google_Service_Webmasters_SitemapsListResponse 
  37. */ 
  38. public function listSitemaps($siteUrl, $optParams = array()) 
  39. $params = array('siteUrl' => $siteUrl); 
  40. $params = array_merge($params, $optParams); 
  41. return $this->call('list', array($params), "Google_Service_Webmasters_SitemapsListResponse"); 
  42.  
  43. /** 
  44. * Submits a sitemap for a site. (sitemaps.submit) 
  45. * @param string $siteUrl The site's URL, including protocol, for example 
  46. * 'http://www.example.com/' 
  47. * @param string $feedpath The URL of the sitemap to add. 
  48. * @param array $optParams Optional parameters. 
  49. */ 
  50. public function submit($siteUrl, $feedpath, $optParams = array()) 
  51. $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath); 
  52. $params = array_merge($params, $optParams); 
  53. return $this->call('submit', array($params));