MonsterInsights_GA_Lib_Service_Webmasters_Sitemaps_Resource

The "sitemaps" collection of methods.

Defined (1)

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

/assets/lib/google/src/Google/Service/Webmasters.php  
  1. class MonsterInsights_GA_Lib_Service_Webmasters_Sitemaps_Resource extends MonsterInsights_GA_Lib_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 MonsterInsights_GA_Lib_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), "MonsterInsights_GA_Lib_Service_Webmasters_WmxSitemap"); 
  29.  
  30. /** 
  31. * Lists the sitemaps-entries submitted for this site, or included in the 
  32. * sitemap index file (if sitemapIndex is specified in the request). 
  33. * (sitemaps.listSitemaps) 
  34. * @param string $siteUrl The site's URL, including protocol. For example: 
  35. * http://www.example.com/ 
  36. * @param array $optParams Optional parameters. 
  37. * @opt_param string sitemapIndex A URL of a site's sitemap index. For example: 
  38. * http://www.example.com/sitemapindex.xml 
  39. * @return MonsterInsights_GA_Lib_Service_Webmasters_SitemapsListResponse 
  40. */ 
  41. public function listSitemaps($siteUrl, $optParams = array()) 
  42. $params = array('siteUrl' => $siteUrl); 
  43. $params = array_merge($params, $optParams); 
  44. return $this->call('list', array($params), "MonsterInsights_GA_Lib_Service_Webmasters_SitemapsListResponse"); 
  45.  
  46. /** 
  47. * Submits a sitemap for a site. (sitemaps.submit) 
  48. * @param string $siteUrl The site's URL, including protocol. For example: 
  49. * http://www.example.com/ 
  50. * @param string $feedpath The URL of the sitemap to add. For example: 
  51. * http://www.example.com/sitemap.xml 
  52. * @param array $optParams Optional parameters. 
  53. */ 
  54. public function submit($siteUrl, $feedpath, $optParams = array()) 
  55. $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath); 
  56. $params = array_merge($params, $optParams); 
  57. return $this->call('submit', array($params));