Google_Service_Webmasters

Service definition for Webmasters (v3).

Defined (1)

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

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