Sin descripción

Blogger.php 30KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. /**
  18. * Service definition for Blogger (v3).
  19. *
  20. * <p>
  21. * API for access to the data within Blogger.</p>
  22. *
  23. * <p>
  24. * For more information about this service, see the API
  25. * <a href="https://developers.google.com/blogger/docs/3.0/getting_started" target="_blank">Documentation</a>
  26. * </p>
  27. *
  28. * @author Google, Inc.
  29. */
  30. class Google_Service_Blogger extends Google_Service
  31. {
  32. /** Manage your Blogger account. */
  33. const BLOGGER =
  34. "https://www.googleapis.com/auth/blogger";
  35. /** View your Blogger account. */
  36. const BLOGGER_READONLY =
  37. "https://www.googleapis.com/auth/blogger.readonly";
  38. public $blogUserInfos;
  39. public $blogs;
  40. public $comments;
  41. public $pageViews;
  42. public $pages;
  43. public $postUserInfos;
  44. public $posts;
  45. public $users;
  46. /**
  47. * Constructs the internal representation of the Blogger service.
  48. *
  49. * @param Google_Client $client
  50. */
  51. public function __construct(Google_Client $client)
  52. {
  53. parent::__construct($client);
  54. $this->rootUrl = 'https://www.googleapis.com/';
  55. $this->servicePath = 'blogger/v3/';
  56. $this->version = 'v3';
  57. $this->serviceName = 'blogger';
  58. $this->blogUserInfos = new Google_Service_Blogger_Resource_BlogUserInfos(
  59. $this,
  60. $this->serviceName,
  61. 'blogUserInfos',
  62. array(
  63. 'methods' => array(
  64. 'get' => array(
  65. 'path' => 'users/{userId}/blogs/{blogId}',
  66. 'httpMethod' => 'GET',
  67. 'parameters' => array(
  68. 'userId' => array(
  69. 'location' => 'path',
  70. 'type' => 'string',
  71. 'required' => true,
  72. ),
  73. 'blogId' => array(
  74. 'location' => 'path',
  75. 'type' => 'string',
  76. 'required' => true,
  77. ),
  78. 'maxPosts' => array(
  79. 'location' => 'query',
  80. 'type' => 'integer',
  81. ),
  82. ),
  83. ),
  84. )
  85. )
  86. );
  87. $this->blogs = new Google_Service_Blogger_Resource_Blogs(
  88. $this,
  89. $this->serviceName,
  90. 'blogs',
  91. array(
  92. 'methods' => array(
  93. 'get' => array(
  94. 'path' => 'blogs/{blogId}',
  95. 'httpMethod' => 'GET',
  96. 'parameters' => array(
  97. 'blogId' => array(
  98. 'location' => 'path',
  99. 'type' => 'string',
  100. 'required' => true,
  101. ),
  102. 'maxPosts' => array(
  103. 'location' => 'query',
  104. 'type' => 'integer',
  105. ),
  106. 'view' => array(
  107. 'location' => 'query',
  108. 'type' => 'string',
  109. ),
  110. ),
  111. ),'getByUrl' => array(
  112. 'path' => 'blogs/byurl',
  113. 'httpMethod' => 'GET',
  114. 'parameters' => array(
  115. 'url' => array(
  116. 'location' => 'query',
  117. 'type' => 'string',
  118. 'required' => true,
  119. ),
  120. 'view' => array(
  121. 'location' => 'query',
  122. 'type' => 'string',
  123. ),
  124. ),
  125. ),'listByUser' => array(
  126. 'path' => 'users/{userId}/blogs',
  127. 'httpMethod' => 'GET',
  128. 'parameters' => array(
  129. 'userId' => array(
  130. 'location' => 'path',
  131. 'type' => 'string',
  132. 'required' => true,
  133. ),
  134. 'fetchUserInfo' => array(
  135. 'location' => 'query',
  136. 'type' => 'boolean',
  137. ),
  138. 'role' => array(
  139. 'location' => 'query',
  140. 'type' => 'string',
  141. 'repeated' => true,
  142. ),
  143. 'status' => array(
  144. 'location' => 'query',
  145. 'type' => 'string',
  146. 'repeated' => true,
  147. ),
  148. 'view' => array(
  149. 'location' => 'query',
  150. 'type' => 'string',
  151. ),
  152. ),
  153. ),
  154. )
  155. )
  156. );
  157. $this->comments = new Google_Service_Blogger_Resource_Comments(
  158. $this,
  159. $this->serviceName,
  160. 'comments',
  161. array(
  162. 'methods' => array(
  163. 'approve' => array(
  164. 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/approve',
  165. 'httpMethod' => 'POST',
  166. 'parameters' => array(
  167. 'blogId' => array(
  168. 'location' => 'path',
  169. 'type' => 'string',
  170. 'required' => true,
  171. ),
  172. 'postId' => array(
  173. 'location' => 'path',
  174. 'type' => 'string',
  175. 'required' => true,
  176. ),
  177. 'commentId' => array(
  178. 'location' => 'path',
  179. 'type' => 'string',
  180. 'required' => true,
  181. ),
  182. ),
  183. ),'delete' => array(
  184. 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}',
  185. 'httpMethod' => 'DELETE',
  186. 'parameters' => array(
  187. 'blogId' => array(
  188. 'location' => 'path',
  189. 'type' => 'string',
  190. 'required' => true,
  191. ),
  192. 'postId' => array(
  193. 'location' => 'path',
  194. 'type' => 'string',
  195. 'required' => true,
  196. ),
  197. 'commentId' => array(
  198. 'location' => 'path',
  199. 'type' => 'string',
  200. 'required' => true,
  201. ),
  202. ),
  203. ),'get' => array(
  204. 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}',
  205. 'httpMethod' => 'GET',
  206. 'parameters' => array(
  207. 'blogId' => array(
  208. 'location' => 'path',
  209. 'type' => 'string',
  210. 'required' => true,
  211. ),
  212. 'postId' => array(
  213. 'location' => 'path',
  214. 'type' => 'string',
  215. 'required' => true,
  216. ),
  217. 'commentId' => array(
  218. 'location' => 'path',
  219. 'type' => 'string',
  220. 'required' => true,
  221. ),
  222. 'view' => array(
  223. 'location' => 'query',
  224. 'type' => 'string',
  225. ),
  226. ),
  227. ),'list' => array(
  228. 'path' => 'blogs/{blogId}/posts/{postId}/comments',
  229. 'httpMethod' => 'GET',
  230. 'parameters' => array(
  231. 'blogId' => array(
  232. 'location' => 'path',
  233. 'type' => 'string',
  234. 'required' => true,
  235. ),
  236. 'postId' => array(
  237. 'location' => 'path',
  238. 'type' => 'string',
  239. 'required' => true,
  240. ),
  241. 'endDate' => array(
  242. 'location' => 'query',
  243. 'type' => 'string',
  244. ),
  245. 'fetchBodies' => array(
  246. 'location' => 'query',
  247. 'type' => 'boolean',
  248. ),
  249. 'maxResults' => array(
  250. 'location' => 'query',
  251. 'type' => 'integer',
  252. ),
  253. 'pageToken' => array(
  254. 'location' => 'query',
  255. 'type' => 'string',
  256. ),
  257. 'startDate' => array(
  258. 'location' => 'query',
  259. 'type' => 'string',
  260. ),
  261. 'status' => array(
  262. 'location' => 'query',
  263. 'type' => 'string',
  264. 'repeated' => true,
  265. ),
  266. 'view' => array(
  267. 'location' => 'query',
  268. 'type' => 'string',
  269. ),
  270. ),
  271. ),'listByBlog' => array(
  272. 'path' => 'blogs/{blogId}/comments',
  273. 'httpMethod' => 'GET',
  274. 'parameters' => array(
  275. 'blogId' => array(
  276. 'location' => 'path',
  277. 'type' => 'string',
  278. 'required' => true,
  279. ),
  280. 'endDate' => array(
  281. 'location' => 'query',
  282. 'type' => 'string',
  283. ),
  284. 'fetchBodies' => array(
  285. 'location' => 'query',
  286. 'type' => 'boolean',
  287. ),
  288. 'maxResults' => array(
  289. 'location' => 'query',
  290. 'type' => 'integer',
  291. ),
  292. 'pageToken' => array(
  293. 'location' => 'query',
  294. 'type' => 'string',
  295. ),
  296. 'startDate' => array(
  297. 'location' => 'query',
  298. 'type' => 'string',
  299. ),
  300. 'status' => array(
  301. 'location' => 'query',
  302. 'type' => 'string',
  303. 'repeated' => true,
  304. ),
  305. ),
  306. ),'markAsSpam' => array(
  307. 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/spam',
  308. 'httpMethod' => 'POST',
  309. 'parameters' => array(
  310. 'blogId' => array(
  311. 'location' => 'path',
  312. 'type' => 'string',
  313. 'required' => true,
  314. ),
  315. 'postId' => array(
  316. 'location' => 'path',
  317. 'type' => 'string',
  318. 'required' => true,
  319. ),
  320. 'commentId' => array(
  321. 'location' => 'path',
  322. 'type' => 'string',
  323. 'required' => true,
  324. ),
  325. ),
  326. ),'removeContent' => array(
  327. 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/removecontent',
  328. 'httpMethod' => 'POST',
  329. 'parameters' => array(
  330. 'blogId' => array(
  331. 'location' => 'path',
  332. 'type' => 'string',
  333. 'required' => true,
  334. ),
  335. 'postId' => array(
  336. 'location' => 'path',
  337. 'type' => 'string',
  338. 'required' => true,
  339. ),
  340. 'commentId' => array(
  341. 'location' => 'path',
  342. 'type' => 'string',
  343. 'required' => true,
  344. ),
  345. ),
  346. ),
  347. )
  348. )
  349. );
  350. $this->pageViews = new Google_Service_Blogger_Resource_PageViews(
  351. $this,
  352. $this->serviceName,
  353. 'pageViews',
  354. array(
  355. 'methods' => array(
  356. 'get' => array(
  357. 'path' => 'blogs/{blogId}/pageviews',
  358. 'httpMethod' => 'GET',
  359. 'parameters' => array(
  360. 'blogId' => array(
  361. 'location' => 'path',
  362. 'type' => 'string',
  363. 'required' => true,
  364. ),
  365. 'range' => array(
  366. 'location' => 'query',
  367. 'type' => 'string',
  368. 'repeated' => true,
  369. ),
  370. ),
  371. ),
  372. )
  373. )
  374. );
  375. $this->pages = new Google_Service_Blogger_Resource_Pages(
  376. $this,
  377. $this->serviceName,
  378. 'pages',
  379. array(
  380. 'methods' => array(
  381. 'delete' => array(
  382. 'path' => 'blogs/{blogId}/pages/{pageId}',
  383. 'httpMethod' => 'DELETE',
  384. 'parameters' => array(
  385. 'blogId' => array(
  386. 'location' => 'path',
  387. 'type' => 'string',
  388. 'required' => true,
  389. ),
  390. 'pageId' => array(
  391. 'location' => 'path',
  392. 'type' => 'string',
  393. 'required' => true,
  394. ),
  395. ),
  396. ),'get' => array(
  397. 'path' => 'blogs/{blogId}/pages/{pageId}',
  398. 'httpMethod' => 'GET',
  399. 'parameters' => array(
  400. 'blogId' => array(
  401. 'location' => 'path',
  402. 'type' => 'string',
  403. 'required' => true,
  404. ),
  405. 'pageId' => array(
  406. 'location' => 'path',
  407. 'type' => 'string',
  408. 'required' => true,
  409. ),
  410. 'view' => array(
  411. 'location' => 'query',
  412. 'type' => 'string',
  413. ),
  414. ),
  415. ),'insert' => array(
  416. 'path' => 'blogs/{blogId}/pages',
  417. 'httpMethod' => 'POST',
  418. 'parameters' => array(
  419. 'blogId' => array(
  420. 'location' => 'path',
  421. 'type' => 'string',
  422. 'required' => true,
  423. ),
  424. 'isDraft' => array(
  425. 'location' => 'query',
  426. 'type' => 'boolean',
  427. ),
  428. ),
  429. ),'list' => array(
  430. 'path' => 'blogs/{blogId}/pages',
  431. 'httpMethod' => 'GET',
  432. 'parameters' => array(
  433. 'blogId' => array(
  434. 'location' => 'path',
  435. 'type' => 'string',
  436. 'required' => true,
  437. ),
  438. 'fetchBodies' => array(
  439. 'location' => 'query',
  440. 'type' => 'boolean',
  441. ),
  442. 'maxResults' => array(
  443. 'location' => 'query',
  444. 'type' => 'integer',
  445. ),
  446. 'pageToken' => array(
  447. 'location' => 'query',
  448. 'type' => 'string',
  449. ),
  450. 'status' => array(
  451. 'location' => 'query',
  452. 'type' => 'string',
  453. 'repeated' => true,
  454. ),
  455. 'view' => array(
  456. 'location' => 'query',
  457. 'type' => 'string',
  458. ),
  459. ),
  460. ),'patch' => array(
  461. 'path' => 'blogs/{blogId}/pages/{pageId}',
  462. 'httpMethod' => 'PATCH',
  463. 'parameters' => array(
  464. 'blogId' => array(
  465. 'location' => 'path',
  466. 'type' => 'string',
  467. 'required' => true,
  468. ),
  469. 'pageId' => array(
  470. 'location' => 'path',
  471. 'type' => 'string',
  472. 'required' => true,
  473. ),
  474. 'publish' => array(
  475. 'location' => 'query',
  476. 'type' => 'boolean',
  477. ),
  478. 'revert' => array(
  479. 'location' => 'query',
  480. 'type' => 'boolean',
  481. ),
  482. ),
  483. ),'publish' => array(
  484. 'path' => 'blogs/{blogId}/pages/{pageId}/publish',
  485. 'httpMethod' => 'POST',
  486. 'parameters' => array(
  487. 'blogId' => array(
  488. 'location' => 'path',
  489. 'type' => 'string',
  490. 'required' => true,
  491. ),
  492. 'pageId' => array(
  493. 'location' => 'path',
  494. 'type' => 'string',
  495. 'required' => true,
  496. ),
  497. ),
  498. ),'revert' => array(
  499. 'path' => 'blogs/{blogId}/pages/{pageId}/revert',
  500. 'httpMethod' => 'POST',
  501. 'parameters' => array(
  502. 'blogId' => array(
  503. 'location' => 'path',
  504. 'type' => 'string',
  505. 'required' => true,
  506. ),
  507. 'pageId' => array(
  508. 'location' => 'path',
  509. 'type' => 'string',
  510. 'required' => true,
  511. ),
  512. ),
  513. ),'update' => array(
  514. 'path' => 'blogs/{blogId}/pages/{pageId}',
  515. 'httpMethod' => 'PUT',
  516. 'parameters' => array(
  517. 'blogId' => array(
  518. 'location' => 'path',
  519. 'type' => 'string',
  520. 'required' => true,
  521. ),
  522. 'pageId' => array(
  523. 'location' => 'path',
  524. 'type' => 'string',
  525. 'required' => true,
  526. ),
  527. 'publish' => array(
  528. 'location' => 'query',
  529. 'type' => 'boolean',
  530. ),
  531. 'revert' => array(
  532. 'location' => 'query',
  533. 'type' => 'boolean',
  534. ),
  535. ),
  536. ),
  537. )
  538. )
  539. );
  540. $this->postUserInfos = new Google_Service_Blogger_Resource_PostUserInfos(
  541. $this,
  542. $this->serviceName,
  543. 'postUserInfos',
  544. array(
  545. 'methods' => array(
  546. 'get' => array(
  547. 'path' => 'users/{userId}/blogs/{blogId}/posts/{postId}',
  548. 'httpMethod' => 'GET',
  549. 'parameters' => array(
  550. 'userId' => array(
  551. 'location' => 'path',
  552. 'type' => 'string',
  553. 'required' => true,
  554. ),
  555. 'blogId' => array(
  556. 'location' => 'path',
  557. 'type' => 'string',
  558. 'required' => true,
  559. ),
  560. 'postId' => array(
  561. 'location' => 'path',
  562. 'type' => 'string',
  563. 'required' => true,
  564. ),
  565. 'maxComments' => array(
  566. 'location' => 'query',
  567. 'type' => 'integer',
  568. ),
  569. ),
  570. ),'list' => array(
  571. 'path' => 'users/{userId}/blogs/{blogId}/posts',
  572. 'httpMethod' => 'GET',
  573. 'parameters' => array(
  574. 'userId' => array(
  575. 'location' => 'path',
  576. 'type' => 'string',
  577. 'required' => true,
  578. ),
  579. 'blogId' => array(
  580. 'location' => 'path',
  581. 'type' => 'string',
  582. 'required' => true,
  583. ),
  584. 'endDate' => array(
  585. 'location' => 'query',
  586. 'type' => 'string',
  587. ),
  588. 'fetchBodies' => array(
  589. 'location' => 'query',
  590. 'type' => 'boolean',
  591. ),
  592. 'labels' => array(
  593. 'location' => 'query',
  594. 'type' => 'string',
  595. ),
  596. 'maxResults' => array(
  597. 'location' => 'query',
  598. 'type' => 'integer',
  599. ),
  600. 'orderBy' => array(
  601. 'location' => 'query',
  602. 'type' => 'string',
  603. ),
  604. 'pageToken' => array(
  605. 'location' => 'query',
  606. 'type' => 'string',
  607. ),
  608. 'startDate' => array(
  609. 'location' => 'query',
  610. 'type' => 'string',
  611. ),
  612. 'status' => array(
  613. 'location' => 'query',
  614. 'type' => 'string',
  615. 'repeated' => true,
  616. ),
  617. 'view' => array(
  618. 'location' => 'query',
  619. 'type' => 'string',
  620. ),
  621. ),
  622. ),
  623. )
  624. )
  625. );
  626. $this->posts = new Google_Service_Blogger_Resource_Posts(
  627. $this,
  628. $this->serviceName,
  629. 'posts',
  630. array(
  631. 'methods' => array(
  632. 'delete' => array(
  633. 'path' => 'blogs/{blogId}/posts/{postId}',
  634. 'httpMethod' => 'DELETE',
  635. 'parameters' => array(
  636. 'blogId' => array(
  637. 'location' => 'path',
  638. 'type' => 'string',
  639. 'required' => true,
  640. ),
  641. 'postId' => array(
  642. 'location' => 'path',
  643. 'type' => 'string',
  644. 'required' => true,
  645. ),
  646. ),
  647. ),'get' => array(
  648. 'path' => 'blogs/{blogId}/posts/{postId}',
  649. 'httpMethod' => 'GET',
  650. 'parameters' => array(
  651. 'blogId' => array(
  652. 'location' => 'path',
  653. 'type' => 'string',
  654. 'required' => true,
  655. ),
  656. 'postId' => array(
  657. 'location' => 'path',
  658. 'type' => 'string',
  659. 'required' => true,
  660. ),
  661. 'fetchBody' => array(
  662. 'location' => 'query',
  663. 'type' => 'boolean',
  664. ),
  665. 'fetchImages' => array(
  666. 'location' => 'query',
  667. 'type' => 'boolean',
  668. ),
  669. 'maxComments' => array(
  670. 'location' => 'query',
  671. 'type' => 'integer',
  672. ),
  673. 'view' => array(
  674. 'location' => 'query',
  675. 'type' => 'string',
  676. ),
  677. ),
  678. ),'getByPath' => array(
  679. 'path' => 'blogs/{blogId}/posts/bypath',
  680. 'httpMethod' => 'GET',
  681. 'parameters' => array(
  682. 'blogId' => array(
  683. 'location' => 'path',
  684. 'type' => 'string',
  685. 'required' => true,
  686. ),
  687. 'path' => array(
  688. 'location' => 'query',
  689. 'type' => 'string',
  690. 'required' => true,
  691. ),
  692. 'maxComments' => array(
  693. 'location' => 'query',
  694. 'type' => 'integer',
  695. ),
  696. 'view' => array(
  697. 'location' => 'query',
  698. 'type' => 'string',
  699. ),
  700. ),
  701. ),'insert' => array(
  702. 'path' => 'blogs/{blogId}/posts',
  703. 'httpMethod' => 'POST',
  704. 'parameters' => array(
  705. 'blogId' => array(
  706. 'location' => 'path',
  707. 'type' => 'string',
  708. 'required' => true,
  709. ),
  710. 'fetchBody' => array(
  711. 'location' => 'query',
  712. 'type' => 'boolean',
  713. ),
  714. 'fetchImages' => array(
  715. 'location' => 'query',
  716. 'type' => 'boolean',
  717. ),
  718. 'isDraft' => array(
  719. 'location' => 'query',
  720. 'type' => 'boolean',
  721. ),
  722. ),
  723. ),'list' => array(
  724. 'path' => 'blogs/{blogId}/posts',
  725. 'httpMethod' => 'GET',
  726. 'parameters' => array(
  727. 'blogId' => array(
  728. 'location' => 'path',
  729. 'type' => 'string',
  730. 'required' => true,
  731. ),
  732. 'endDate' => array(
  733. 'location' => 'query',
  734. 'type' => 'string',
  735. ),
  736. 'fetchBodies' => array(
  737. 'location' => 'query',
  738. 'type' => 'boolean',
  739. ),
  740. 'fetchImages' => array(
  741. 'location' => 'query',
  742. 'type' => 'boolean',
  743. ),
  744. 'labels' => array(
  745. 'location' => 'query',
  746. 'type' => 'string',
  747. ),
  748. 'maxResults' => array(
  749. 'location' => 'query',
  750. 'type' => 'integer',
  751. ),
  752. 'orderBy' => array(
  753. 'location' => 'query',
  754. 'type' => 'string',
  755. ),
  756. 'pageToken' => array(
  757. 'location' => 'query',
  758. 'type' => 'string',
  759. ),
  760. 'startDate' => array(
  761. 'location' => 'query',
  762. 'type' => 'string',
  763. ),
  764. 'status' => array(
  765. 'location' => 'query',
  766. 'type' => 'string',
  767. 'repeated' => true,
  768. ),
  769. 'view' => array(
  770. 'location' => 'query',
  771. 'type' => 'string',
  772. ),
  773. ),
  774. ),'patch' => array(
  775. 'path' => 'blogs/{blogId}/posts/{postId}',
  776. 'httpMethod' => 'PATCH',
  777. 'parameters' => array(
  778. 'blogId' => array(
  779. 'location' => 'path',
  780. 'type' => 'string',
  781. 'required' => true,
  782. ),
  783. 'postId' => array(
  784. 'location' => 'path',
  785. 'type' => 'string',
  786. 'required' => true,
  787. ),
  788. 'fetchBody' => array(
  789. 'location' => 'query',
  790. 'type' => 'boolean',
  791. ),
  792. 'fetchImages' => array(
  793. 'location' => 'query',
  794. 'type' => 'boolean',
  795. ),
  796. 'maxComments' => array(
  797. 'location' => 'query',
  798. 'type' => 'integer',
  799. ),
  800. 'publish' => array(
  801. 'location' => 'query',
  802. 'type' => 'boolean',
  803. ),
  804. 'revert' => array(
  805. 'location' => 'query',
  806. 'type' => 'boolean',
  807. ),
  808. ),
  809. ),'publish' => array(
  810. 'path' => 'blogs/{blogId}/posts/{postId}/publish',
  811. 'httpMethod' => 'POST',
  812. 'parameters' => array(
  813. 'blogId' => array(
  814. 'location' => 'path',
  815. 'type' => 'string',
  816. 'required' => true,
  817. ),
  818. 'postId' => array(
  819. 'location' => 'path',
  820. 'type' => 'string',
  821. 'required' => true,
  822. ),
  823. 'publishDate' => array(
  824. 'location' => 'query',
  825. 'type' => 'string',
  826. ),
  827. ),
  828. ),'revert' => array(
  829. 'path' => 'blogs/{blogId}/posts/{postId}/revert',
  830. 'httpMethod' => 'POST',
  831. 'parameters' => array(
  832. 'blogId' => array(
  833. 'location' => 'path',
  834. 'type' => 'string',
  835. 'required' => true,
  836. ),
  837. 'postId' => array(
  838. 'location' => 'path',
  839. 'type' => 'string',
  840. 'required' => true,
  841. ),
  842. ),
  843. ),'search' => array(
  844. 'path' => 'blogs/{blogId}/posts/search',
  845. 'httpMethod' => 'GET',
  846. 'parameters' => array(
  847. 'blogId' => array(
  848. 'location' => 'path',
  849. 'type' => 'string',
  850. 'required' => true,
  851. ),
  852. 'q' => array(
  853. 'location' => 'query',
  854. 'type' => 'string',
  855. 'required' => true,
  856. ),
  857. 'fetchBodies' => array(
  858. 'location' => 'query',
  859. 'type' => 'boolean',
  860. ),
  861. 'orderBy' => array(
  862. 'location' => 'query',
  863. 'type' => 'string',
  864. ),
  865. ),
  866. ),'update' => array(
  867. 'path' => 'blogs/{blogId}/posts/{postId}',
  868. 'httpMethod' => 'PUT',
  869. 'parameters' => array(
  870. 'blogId' => array(
  871. 'location' => 'path',
  872. 'type' => 'string',
  873. 'required' => true,
  874. ),
  875. 'postId' => array(
  876. 'location' => 'path',
  877. 'type' => 'string',
  878. 'required' => true,
  879. ),
  880. 'fetchBody' => array(
  881. 'location' => 'query',
  882. 'type' => 'boolean',
  883. ),
  884. 'fetchImages' => array(
  885. 'location' => 'query',
  886. 'type' => 'boolean',
  887. ),
  888. 'maxComments' => array(
  889. 'location' => 'query',
  890. 'type' => 'integer',
  891. ),
  892. 'publish' => array(
  893. 'location' => 'query',
  894. 'type' => 'boolean',
  895. ),
  896. 'revert' => array(
  897. 'location' => 'query',
  898. 'type' => 'boolean',
  899. ),
  900. ),
  901. ),
  902. )
  903. )
  904. );
  905. $this->users = new Google_Service_Blogger_Resource_Users(
  906. $this,
  907. $this->serviceName,
  908. 'users',
  909. array(
  910. 'methods' => array(
  911. 'get' => array(
  912. 'path' => 'users/{userId}',
  913. 'httpMethod' => 'GET',
  914. 'parameters' => array(
  915. 'userId' => array(
  916. 'location' => 'path',
  917. 'type' => 'string',
  918. 'required' => true,
  919. ),
  920. ),
  921. ),
  922. )
  923. )
  924. );
  925. }
  926. }