Google_Service_Webmasters

Service definition for Webmasters (v3).

Defined (1)

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

/vendor/google/apiclient/src/Google/Service/Webmasters.php  
  1. class Google_Service_Webmasters extends Google_Service 
  2. /** View and manage Search Console data for your verified sites. */ 
  3. const WEBMASTERS = 
  4. "https://www.googleapis.com/auth/webmasters"; 
  5. /** View Search Console data for your verified sites. */ 
  6. const WEBMASTERS_READONLY = 
  7. "https://www.googleapis.com/auth/webmasters.readonly"; 
  8.  
  9. public $searchanalytics; 
  10. public $sitemaps; 
  11. public $sites; 
  12. public $urlcrawlerrorscounts; 
  13. public $urlcrawlerrorssamples; 
  14.  
  15.  
  16. /** 
  17. * Constructs the internal representation of the Webmasters service. 
  18. * @param Google_Client $client 
  19. */ 
  20. public function __construct(Google_Client $client) 
  21. parent::__construct($client); 
  22. $this->rootUrl = 'https://www.googleapis.com/'; 
  23. $this->servicePath = 'webmasters/v3/'; 
  24. $this->version = 'v3'; 
  25. $this->serviceName = 'webmasters'; 
  26.  
  27. $this->searchanalytics = new Google_Service_Webmasters_Searchanalytics_Resource( 
  28. $this,  
  29. $this->serviceName,  
  30. 'searchanalytics',  
  31. array( 
  32. 'methods' => array( 
  33. 'query' => array( 
  34. 'path' => 'sites/{siteUrl}/searchAnalytics/query',  
  35. 'httpMethod' => 'POST',  
  36. 'parameters' => array( 
  37. 'siteUrl' => array( 
  38. 'location' => 'path',  
  39. 'type' => 'string',  
  40. 'required' => true,  
  41. ),  
  42. ),  
  43. ),  
  44. ); 
  45. $this->sitemaps = new Google_Service_Webmasters_Sitemaps_Resource( 
  46. $this,  
  47. $this->serviceName,  
  48. 'sitemaps',  
  49. array( 
  50. 'methods' => array( 
  51. 'delete' => array( 
  52. 'path' => 'sites/{siteUrl}/sitemaps/{feedpath}',  
  53. 'httpMethod' => 'DELETE',  
  54. 'parameters' => array( 
  55. 'siteUrl' => array( 
  56. 'location' => 'path',  
  57. 'type' => 'string',  
  58. 'required' => true,  
  59. ),  
  60. 'feedpath' => array( 
  61. 'location' => 'path',  
  62. 'type' => 'string',  
  63. 'required' => true,  
  64. ),  
  65. ),  
  66. ), 'get' => array( 
  67. 'path' => 'sites/{siteUrl}/sitemaps/{feedpath}',  
  68. 'httpMethod' => 'GET',  
  69. 'parameters' => array( 
  70. 'siteUrl' => array( 
  71. 'location' => 'path',  
  72. 'type' => 'string',  
  73. 'required' => true,  
  74. ),  
  75. 'feedpath' => array( 
  76. 'location' => 'path',  
  77. 'type' => 'string',  
  78. 'required' => true,  
  79. ),  
  80. ),  
  81. ), 'list' => array( 
  82. 'path' => 'sites/{siteUrl}/sitemaps',  
  83. 'httpMethod' => 'GET',  
  84. 'parameters' => array( 
  85. 'siteUrl' => array( 
  86. 'location' => 'path',  
  87. 'type' => 'string',  
  88. 'required' => true,  
  89. ),  
  90. 'sitemapIndex' => array( 
  91. 'location' => 'query',  
  92. 'type' => 'string',  
  93. ),  
  94. ),  
  95. ), 'submit' => array( 
  96. 'path' => 'sites/{siteUrl}/sitemaps/{feedpath}',  
  97. 'httpMethod' => 'PUT',  
  98. 'parameters' => array( 
  99. 'siteUrl' => array( 
  100. 'location' => 'path',  
  101. 'type' => 'string',  
  102. 'required' => true,  
  103. ),  
  104. 'feedpath' => array( 
  105. 'location' => 'path',  
  106. 'type' => 'string',  
  107. 'required' => true,  
  108. ),  
  109. ),  
  110. ),  
  111. ); 
  112. $this->sites = new Google_Service_Webmasters_Sites_Resource( 
  113. $this,  
  114. $this->serviceName,  
  115. 'sites',  
  116. array( 
  117. 'methods' => array( 
  118. 'add' => array( 
  119. 'path' => 'sites/{siteUrl}',  
  120. 'httpMethod' => 'PUT',  
  121. 'parameters' => array( 
  122. 'siteUrl' => array( 
  123. 'location' => 'path',  
  124. 'type' => 'string',  
  125. 'required' => true,  
  126. ),  
  127. ),  
  128. ), 'delete' => array( 
  129. 'path' => 'sites/{siteUrl}',  
  130. 'httpMethod' => 'DELETE',  
  131. 'parameters' => array( 
  132. 'siteUrl' => array( 
  133. 'location' => 'path',  
  134. 'type' => 'string',  
  135. 'required' => true,  
  136. ),  
  137. ),  
  138. ), 'get' => array( 
  139. 'path' => 'sites/{siteUrl}',  
  140. 'httpMethod' => 'GET',  
  141. 'parameters' => array( 
  142. 'siteUrl' => array( 
  143. 'location' => 'path',  
  144. 'type' => 'string',  
  145. 'required' => true,  
  146. ),  
  147. ),  
  148. ), 'list' => array( 
  149. 'path' => 'sites',  
  150. 'httpMethod' => 'GET',  
  151. 'parameters' => array(),  
  152. ),  
  153. ); 
  154. $this->urlcrawlerrorscounts = new Google_Service_Webmasters_Urlcrawlerrorscounts_Resource( 
  155. $this,  
  156. $this->serviceName,  
  157. 'urlcrawlerrorscounts',  
  158. array( 
  159. 'methods' => array( 
  160. 'query' => array( 
  161. 'path' => 'sites/{siteUrl}/urlCrawlErrorsCounts/query',  
  162. 'httpMethod' => 'GET',  
  163. 'parameters' => array( 
  164. 'siteUrl' => array( 
  165. 'location' => 'path',  
  166. 'type' => 'string',  
  167. 'required' => true,  
  168. ),  
  169. 'category' => array( 
  170. 'location' => 'query',  
  171. 'type' => 'string',  
  172. ),  
  173. 'latestCountsOnly' => array( 
  174. 'location' => 'query',  
  175. 'type' => 'boolean',  
  176. ),  
  177. 'platform' => array( 
  178. 'location' => 'query',  
  179. 'type' => 'string',  
  180. ),  
  181. ),  
  182. ),  
  183. ); 
  184. $this->urlcrawlerrorssamples = new Google_Service_Webmasters_Urlcrawlerrorssamples_Resource( 
  185. $this,  
  186. $this->serviceName,  
  187. 'urlcrawlerrorssamples',  
  188. array( 
  189. 'methods' => array( 
  190. 'get' => array( 
  191. 'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}',  
  192. 'httpMethod' => 'GET',  
  193. 'parameters' => array( 
  194. 'siteUrl' => array( 
  195. 'location' => 'path',  
  196. 'type' => 'string',  
  197. 'required' => true,  
  198. ),  
  199. 'url' => array( 
  200. 'location' => 'path',  
  201. 'type' => 'string',  
  202. 'required' => true,  
  203. ),  
  204. 'category' => array( 
  205. 'location' => 'query',  
  206. 'type' => 'string',  
  207. 'required' => true,  
  208. ),  
  209. 'platform' => array( 
  210. 'location' => 'query',  
  211. 'type' => 'string',  
  212. 'required' => true,  
  213. ),  
  214. ),  
  215. ), 'list' => array( 
  216. 'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples',  
  217. 'httpMethod' => 'GET',  
  218. 'parameters' => array( 
  219. 'siteUrl' => array( 
  220. 'location' => 'path',  
  221. 'type' => 'string',  
  222. 'required' => true,  
  223. ),  
  224. 'category' => array( 
  225. 'location' => 'query',  
  226. 'type' => 'string',  
  227. 'required' => true,  
  228. ),  
  229. 'platform' => array( 
  230. 'location' => 'query',  
  231. 'type' => 'string',  
  232. 'required' => true,  
  233. ),  
  234. ),  
  235. ), 'markAsFixed' => array( 
  236. 'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}',  
  237. 'httpMethod' => 'DELETE',  
  238. 'parameters' => array( 
  239. 'siteUrl' => array( 
  240. 'location' => 'path',  
  241. 'type' => 'string',  
  242. 'required' => true,  
  243. ),  
  244. 'url' => array( 
  245. 'location' => 'path',  
  246. 'type' => 'string',  
  247. 'required' => true,  
  248. ),  
  249. 'category' => array( 
  250. 'location' => 'query',  
  251. 'type' => 'string',  
  252. 'required' => true,  
  253. ),  
  254. 'platform' => array( 
  255. 'location' => 'query',  
  256. 'type' => 'string',  
  257. 'required' => true,  
  258. ),  
  259. ),  
  260. ),  
  261. );