Google_Service_Webmasters_Urlcrawlerrorssamples_Resource

The "urlcrawlerrorssamples" collection of methods.

Defined (1)

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

/google_api/Service/Webmasters.php  
  1. class Google_Service_Webmasters_Urlcrawlerrorssamples_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Retrieves details about crawl errors for a site's sample URL. 
  5. * (urlcrawlerrorssamples.get) 
  6. * @param string $siteUrl The site's URL, including protocol, for example 
  7. * 'http://www.example.com/' 
  8. * @param string $url The relative path (without the site) of the sample URL; 
  9. * must be one of the URLs returned by list 
  10. * @param string $category The crawl error category, for example 
  11. * 'authPermissions' 
  12. * @param string $platform The user agent type (platform) that made the request,  
  13. * for example 'web' 
  14. * @param array $optParams Optional parameters. 
  15. * @return Google_Service_Webmasters_UrlCrawlErrorsSample 
  16. */ 
  17. public function get($siteUrl, $url, $category, $platform, $optParams = array()) 
  18. $params = array('siteUrl' => $siteUrl, 'url' => $url, 'category' => $category, 'platform' => $platform); 
  19. $params = array_merge($params, $optParams); 
  20. return $this->call('get', array($params), "Google_Service_Webmasters_UrlCrawlErrorsSample"); 
  21.  
  22. /** 
  23. * Lists a site's sample URLs for the specified crawl error category and 
  24. * platform. (urlcrawlerrorssamples.listUrlcrawlerrorssamples) 
  25. * @param string $siteUrl The site's URL, including protocol, for example 
  26. * 'http://www.example.com/' 
  27. * @param string $category The crawl error category, for example 
  28. * 'authPermissions' 
  29. * @param string $platform The user agent type (platform) that made the request,  
  30. * for example 'web' 
  31. * @param array $optParams Optional parameters. 
  32. * @return Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse 
  33. */ 
  34. public function listUrlcrawlerrorssamples($siteUrl, $category, $platform, $optParams = array()) 
  35. $params = array('siteUrl' => $siteUrl, 'category' => $category, 'platform' => $platform); 
  36. $params = array_merge($params, $optParams); 
  37. return $this->call('list', array($params), "Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse"); 
  38.  
  39. /** 
  40. * Marks the provided site's sample URL as fixed, and removes it from the 
  41. * samples list. (urlcrawlerrorssamples.markAsFixed) 
  42. * @param string $siteUrl The site's URL, including protocol, for example 
  43. * 'http://www.example.com/' 
  44. * @param string $url The relative path (without the site) of the sample URL; 
  45. * must be one of the URLs returned by list 
  46. * @param string $category The crawl error category, for example 
  47. * 'authPermissions' 
  48. * @param string $platform The user agent type (platform) that made the request,  
  49. * for example 'web' 
  50. * @param array $optParams Optional parameters. 
  51. */ 
  52. public function markAsFixed($siteUrl, $url, $category, $platform, $optParams = array()) 
  53. $params = array('siteUrl' => $siteUrl, 'url' => $url, 'category' => $category, 'platform' => $platform); 
  54. $params = array_merge($params, $optParams); 
  55. return $this->call('markAsFixed', array($params));