/includes/api-libs/Google/Service/Blogger.php

  1. <?php 
  2. /** 
  3. * Copyright 2010 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. /** 
  19. * Service definition for Blogger (v3). 
  20. * 
  21. * <p> 
  22. * API for access to the data within Blogger.</p> 
  23. * 
  24. * <p> 
  25. * For more information about this service, see the API 
  26. * <a href="https://developers.google.com/blogger/docs/3.0/getting_started" target="_blank">Documentation</a> 
  27. * </p> 
  28. * 
  29. * @author Google, Inc. 
  30. */ 
  31. class Google_Service_Blogger extends Google_Service 
  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.  
  39. public $blogUserInfos; 
  40. public $blogs; 
  41. public $comments; 
  42. public $pageViews; 
  43. public $pages; 
  44. public $postUserInfos; 
  45. public $posts; 
  46. public $users; 
  47.  
  48.  
  49. /** 
  50. * Constructs the internal representation of the Blogger service. 
  51. * 
  52. * @param Google_Client $client 
  53. */ 
  54. public function __construct(Google_Client $client) 
  55. parent::__construct($client); 
  56. $this->servicePath = 'blogger/v3/'; 
  57. $this->version = 'v3'; 
  58. $this->serviceName = 'blogger'; 
  59.  
  60. $this->blogUserInfos = new Google_Service_Blogger_BlogUserInfos_Resource( 
  61. $this,  
  62. $this->serviceName,  
  63. 'blogUserInfos',  
  64. array( 
  65. 'methods' => array( 
  66. 'get' => array( 
  67. 'path' => 'users/{userId}/blogs/{blogId}',  
  68. 'httpMethod' => 'GET',  
  69. 'parameters' => array( 
  70. 'userId' => array( 
  71. 'location' => 'path',  
  72. 'type' => 'string',  
  73. 'required' => true,  
  74. ),  
  75. 'blogId' => array( 
  76. 'location' => 'path',  
  77. 'type' => 'string',  
  78. 'required' => true,  
  79. ),  
  80. 'maxPosts' => array( 
  81. 'location' => 'query',  
  82. 'type' => 'integer',  
  83. ),  
  84. ),  
  85. ),  
  86. ); 
  87. $this->blogs = new Google_Service_Blogger_Blogs_Resource( 
  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. 'status' => array( 
  139. 'location' => 'query',  
  140. 'type' => 'string',  
  141. 'repeated' => true,  
  142. ),  
  143. 'role' => 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. $this->comments = new Google_Service_Blogger_Comments_Resource( 
  156. $this,  
  157. $this->serviceName,  
  158. 'comments',  
  159. array( 
  160. 'methods' => array( 
  161. 'approve' => array( 
  162. 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/approve',  
  163. 'httpMethod' => 'POST',  
  164. 'parameters' => array( 
  165. 'blogId' => array( 
  166. 'location' => 'path',  
  167. 'type' => 'string',  
  168. 'required' => true,  
  169. ),  
  170. 'postId' => array( 
  171. 'location' => 'path',  
  172. 'type' => 'string',  
  173. 'required' => true,  
  174. ),  
  175. 'commentId' => array( 
  176. 'location' => 'path',  
  177. 'type' => 'string',  
  178. 'required' => true,  
  179. ),  
  180. ),  
  181. ), 'delete' => array( 
  182. 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}',  
  183. 'httpMethod' => 'DELETE',  
  184. 'parameters' => array( 
  185. 'blogId' => array( 
  186. 'location' => 'path',  
  187. 'type' => 'string',  
  188. 'required' => true,  
  189. ),  
  190. 'postId' => array( 
  191. 'location' => 'path',  
  192. 'type' => 'string',  
  193. 'required' => true,  
  194. ),  
  195. 'commentId' => array( 
  196. 'location' => 'path',  
  197. 'type' => 'string',  
  198. 'required' => true,  
  199. ),  
  200. ),  
  201. ), 'get' => array( 
  202. 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}',  
  203. 'httpMethod' => 'GET',  
  204. 'parameters' => array( 
  205. 'blogId' => array( 
  206. 'location' => 'path',  
  207. 'type' => 'string',  
  208. 'required' => true,  
  209. ),  
  210. 'postId' => array( 
  211. 'location' => 'path',  
  212. 'type' => 'string',  
  213. 'required' => true,  
  214. ),  
  215. 'commentId' => array( 
  216. 'location' => 'path',  
  217. 'type' => 'string',  
  218. 'required' => true,  
  219. ),  
  220. 'view' => array( 
  221. 'location' => 'query',  
  222. 'type' => 'string',  
  223. ),  
  224. ),  
  225. ), 'list' => array( 
  226. 'path' => 'blogs/{blogId}/posts/{postId}/comments',  
  227. 'httpMethod' => 'GET',  
  228. 'parameters' => array( 
  229. 'blogId' => array( 
  230. 'location' => 'path',  
  231. 'type' => 'string',  
  232. 'required' => true,  
  233. ),  
  234. 'postId' => array( 
  235. 'location' => 'path',  
  236. 'type' => 'string',  
  237. 'required' => true,  
  238. ),  
  239. 'status' => array( 
  240. 'location' => 'query',  
  241. 'type' => 'string',  
  242. 'repeated' => true,  
  243. ),  
  244. 'startDate' => array( 
  245. 'location' => 'query',  
  246. 'type' => 'string',  
  247. ),  
  248. 'endDate' => array( 
  249. 'location' => 'query',  
  250. 'type' => 'string',  
  251. ),  
  252. 'maxResults' => array( 
  253. 'location' => 'query',  
  254. 'type' => 'integer',  
  255. ),  
  256. 'pageToken' => array( 
  257. 'location' => 'query',  
  258. 'type' => 'string',  
  259. ),  
  260. 'fetchBodies' => array( 
  261. 'location' => 'query',  
  262. 'type' => 'boolean',  
  263. ),  
  264. 'view' => array( 
  265. 'location' => 'query',  
  266. 'type' => 'string',  
  267. ),  
  268. ),  
  269. ), 'listByBlog' => array( 
  270. 'path' => 'blogs/{blogId}/comments',  
  271. 'httpMethod' => 'GET',  
  272. 'parameters' => array( 
  273. 'blogId' => array( 
  274. 'location' => 'path',  
  275. 'type' => 'string',  
  276. 'required' => true,  
  277. ),  
  278. 'status' => array( 
  279. 'location' => 'query',  
  280. 'type' => 'string',  
  281. 'repeated' => true,  
  282. ),  
  283. 'startDate' => array( 
  284. 'location' => 'query',  
  285. 'type' => 'string',  
  286. ),  
  287. 'endDate' => array( 
  288. 'location' => 'query',  
  289. 'type' => 'string',  
  290. ),  
  291. 'maxResults' => array( 
  292. 'location' => 'query',  
  293. 'type' => 'integer',  
  294. ),  
  295. 'pageToken' => array( 
  296. 'location' => 'query',  
  297. 'type' => 'string',  
  298. ),  
  299. 'fetchBodies' => array( 
  300. 'location' => 'query',  
  301. 'type' => 'boolean',  
  302. ),  
  303. ),  
  304. ), 'markAsSpam' => array( 
  305. 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/spam',  
  306. 'httpMethod' => 'POST',  
  307. 'parameters' => array( 
  308. 'blogId' => array( 
  309. 'location' => 'path',  
  310. 'type' => 'string',  
  311. 'required' => true,  
  312. ),  
  313. 'postId' => array( 
  314. 'location' => 'path',  
  315. 'type' => 'string',  
  316. 'required' => true,  
  317. ),  
  318. 'commentId' => array( 
  319. 'location' => 'path',  
  320. 'type' => 'string',  
  321. 'required' => true,  
  322. ),  
  323. ),  
  324. ), 'removeContent' => array( 
  325. 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/removecontent',  
  326. 'httpMethod' => 'POST',  
  327. 'parameters' => array( 
  328. 'blogId' => array( 
  329. 'location' => 'path',  
  330. 'type' => 'string',  
  331. 'required' => true,  
  332. ),  
  333. 'postId' => array( 
  334. 'location' => 'path',  
  335. 'type' => 'string',  
  336. 'required' => true,  
  337. ),  
  338. 'commentId' => array( 
  339. 'location' => 'path',  
  340. 'type' => 'string',  
  341. 'required' => true,  
  342. ),  
  343. ),  
  344. ),  
  345. ); 
  346. $this->pageViews = new Google_Service_Blogger_PageViews_Resource( 
  347. $this,  
  348. $this->serviceName,  
  349. 'pageViews',  
  350. array( 
  351. 'methods' => array( 
  352. 'get' => array( 
  353. 'path' => 'blogs/{blogId}/pageviews',  
  354. 'httpMethod' => 'GET',  
  355. 'parameters' => array( 
  356. 'blogId' => array( 
  357. 'location' => 'path',  
  358. 'type' => 'string',  
  359. 'required' => true,  
  360. ),  
  361. 'range' => array( 
  362. 'location' => 'query',  
  363. 'type' => 'string',  
  364. 'repeated' => true,  
  365. ),  
  366. ),  
  367. ),  
  368. ); 
  369. $this->pages = new Google_Service_Blogger_Pages_Resource( 
  370. $this,  
  371. $this->serviceName,  
  372. 'pages',  
  373. array( 
  374. 'methods' => array( 
  375. 'delete' => array( 
  376. 'path' => 'blogs/{blogId}/pages/{pageId}',  
  377. 'httpMethod' => 'DELETE',  
  378. 'parameters' => array( 
  379. 'blogId' => array( 
  380. 'location' => 'path',  
  381. 'type' => 'string',  
  382. 'required' => true,  
  383. ),  
  384. 'pageId' => array( 
  385. 'location' => 'path',  
  386. 'type' => 'string',  
  387. 'required' => true,  
  388. ),  
  389. ),  
  390. ), 'get' => array( 
  391. 'path' => 'blogs/{blogId}/pages/{pageId}',  
  392. 'httpMethod' => 'GET',  
  393. 'parameters' => array( 
  394. 'blogId' => array( 
  395. 'location' => 'path',  
  396. 'type' => 'string',  
  397. 'required' => true,  
  398. ),  
  399. 'pageId' => array( 
  400. 'location' => 'path',  
  401. 'type' => 'string',  
  402. 'required' => true,  
  403. ),  
  404. 'view' => array( 
  405. 'location' => 'query',  
  406. 'type' => 'string',  
  407. ),  
  408. ),  
  409. ), 'insert' => array( 
  410. 'path' => 'blogs/{blogId}/pages',  
  411. 'httpMethod' => 'POST',  
  412. 'parameters' => array( 
  413. 'blogId' => array( 
  414. 'location' => 'path',  
  415. 'type' => 'string',  
  416. 'required' => true,  
  417. ),  
  418. 'isDraft' => array( 
  419. 'location' => 'query',  
  420. 'type' => 'boolean',  
  421. ),  
  422. ),  
  423. ), 'list' => array( 
  424. 'path' => 'blogs/{blogId}/pages',  
  425. 'httpMethod' => 'GET',  
  426. 'parameters' => array( 
  427. 'blogId' => array( 
  428. 'location' => 'path',  
  429. 'type' => 'string',  
  430. 'required' => true,  
  431. ),  
  432. 'status' => array( 
  433. 'location' => 'query',  
  434. 'type' => 'string',  
  435. 'repeated' => true,  
  436. ),  
  437. 'maxResults' => array( 
  438. 'location' => 'query',  
  439. 'type' => 'integer',  
  440. ),  
  441. 'pageToken' => array( 
  442. 'location' => 'query',  
  443. 'type' => 'string',  
  444. ),  
  445. 'fetchBodies' => array( 
  446. 'location' => 'query',  
  447. 'type' => 'boolean',  
  448. ),  
  449. 'view' => array( 
  450. 'location' => 'query',  
  451. 'type' => 'string',  
  452. ),  
  453. ),  
  454. ), 'patch' => array( 
  455. 'path' => 'blogs/{blogId}/pages/{pageId}',  
  456. 'httpMethod' => 'PATCH',  
  457. 'parameters' => array( 
  458. 'blogId' => array( 
  459. 'location' => 'path',  
  460. 'type' => 'string',  
  461. 'required' => true,  
  462. ),  
  463. 'pageId' => array( 
  464. 'location' => 'path',  
  465. 'type' => 'string',  
  466. 'required' => true,  
  467. ),  
  468. 'revert' => array( 
  469. 'location' => 'query',  
  470. 'type' => 'boolean',  
  471. ),  
  472. 'publish' => array( 
  473. 'location' => 'query',  
  474. 'type' => 'boolean',  
  475. ),  
  476. ),  
  477. ), 'publish' => array( 
  478. 'path' => 'blogs/{blogId}/pages/{pageId}/publish',  
  479. 'httpMethod' => 'POST',  
  480. 'parameters' => array( 
  481. 'blogId' => array( 
  482. 'location' => 'path',  
  483. 'type' => 'string',  
  484. 'required' => true,  
  485. ),  
  486. 'pageId' => array( 
  487. 'location' => 'path',  
  488. 'type' => 'string',  
  489. 'required' => true,  
  490. ),  
  491. ),  
  492. ), 'revert' => array( 
  493. 'path' => 'blogs/{blogId}/pages/{pageId}/revert',  
  494. 'httpMethod' => 'POST',  
  495. 'parameters' => array( 
  496. 'blogId' => array( 
  497. 'location' => 'path',  
  498. 'type' => 'string',  
  499. 'required' => true,  
  500. ),  
  501. 'pageId' => array( 
  502. 'location' => 'path',  
  503. 'type' => 'string',  
  504. 'required' => true,  
  505. ),  
  506. ),  
  507. ), 'update' => array( 
  508. 'path' => 'blogs/{blogId}/pages/{pageId}',  
  509. 'httpMethod' => 'PUT',  
  510. 'parameters' => array( 
  511. 'blogId' => array( 
  512. 'location' => 'path',  
  513. 'type' => 'string',  
  514. 'required' => true,  
  515. ),  
  516. 'pageId' => array( 
  517. 'location' => 'path',  
  518. 'type' => 'string',  
  519. 'required' => true,  
  520. ),  
  521. 'revert' => array( 
  522. 'location' => 'query',  
  523. 'type' => 'boolean',  
  524. ),  
  525. 'publish' => array( 
  526. 'location' => 'query',  
  527. 'type' => 'boolean',  
  528. ),  
  529. ),  
  530. ),  
  531. ); 
  532. $this->postUserInfos = new Google_Service_Blogger_PostUserInfos_Resource( 
  533. $this,  
  534. $this->serviceName,  
  535. 'postUserInfos',  
  536. array( 
  537. 'methods' => array( 
  538. 'get' => array( 
  539. 'path' => 'users/{userId}/blogs/{blogId}/posts/{postId}',  
  540. 'httpMethod' => 'GET',  
  541. 'parameters' => array( 
  542. 'userId' => array( 
  543. 'location' => 'path',  
  544. 'type' => 'string',  
  545. 'required' => true,  
  546. ),  
  547. 'blogId' => array( 
  548. 'location' => 'path',  
  549. 'type' => 'string',  
  550. 'required' => true,  
  551. ),  
  552. 'postId' => array( 
  553. 'location' => 'path',  
  554. 'type' => 'string',  
  555. 'required' => true,  
  556. ),  
  557. 'maxComments' => array( 
  558. 'location' => 'query',  
  559. 'type' => 'integer',  
  560. ),  
  561. ),  
  562. ), 'list' => array( 
  563. 'path' => 'users/{userId}/blogs/{blogId}/posts',  
  564. 'httpMethod' => 'GET',  
  565. 'parameters' => array( 
  566. 'userId' => array( 
  567. 'location' => 'path',  
  568. 'type' => 'string',  
  569. 'required' => true,  
  570. ),  
  571. 'blogId' => array( 
  572. 'location' => 'path',  
  573. 'type' => 'string',  
  574. 'required' => true,  
  575. ),  
  576. 'orderBy' => array( 
  577. 'location' => 'query',  
  578. 'type' => 'string',  
  579. ),  
  580. 'startDate' => array( 
  581. 'location' => 'query',  
  582. 'type' => 'string',  
  583. ),  
  584. 'endDate' => array( 
  585. 'location' => 'query',  
  586. 'type' => 'string',  
  587. ),  
  588. 'labels' => array( 
  589. 'location' => 'query',  
  590. 'type' => 'string',  
  591. ),  
  592. 'maxResults' => array( 
  593. 'location' => 'query',  
  594. 'type' => 'integer',  
  595. ),  
  596. 'pageToken' => array( 
  597. 'location' => 'query',  
  598. 'type' => 'string',  
  599. ),  
  600. 'status' => array( 
  601. 'location' => 'query',  
  602. 'type' => 'string',  
  603. 'repeated' => true,  
  604. ),  
  605. 'fetchBodies' => array( 
  606. 'location' => 'query',  
  607. 'type' => 'boolean',  
  608. ),  
  609. 'view' => array( 
  610. 'location' => 'query',  
  611. 'type' => 'string',  
  612. ),  
  613. ),  
  614. ),  
  615. ); 
  616. $this->posts = new Google_Service_Blogger_Posts_Resource( 
  617. $this,  
  618. $this->serviceName,  
  619. 'posts',  
  620. array( 
  621. 'methods' => array( 
  622. 'delete' => array( 
  623. 'path' => 'blogs/{blogId}/posts/{postId}',  
  624. 'httpMethod' => 'DELETE',  
  625. 'parameters' => array( 
  626. 'blogId' => array( 
  627. 'location' => 'path',  
  628. 'type' => 'string',  
  629. 'required' => true,  
  630. ),  
  631. 'postId' => array( 
  632. 'location' => 'path',  
  633. 'type' => 'string',  
  634. 'required' => true,  
  635. ),  
  636. ),  
  637. ), 'get' => array( 
  638. 'path' => 'blogs/{blogId}/posts/{postId}',  
  639. 'httpMethod' => 'GET',  
  640. 'parameters' => array( 
  641. 'blogId' => array( 
  642. 'location' => 'path',  
  643. 'type' => 'string',  
  644. 'required' => true,  
  645. ),  
  646. 'postId' => array( 
  647. 'location' => 'path',  
  648. 'type' => 'string',  
  649. 'required' => true,  
  650. ),  
  651. 'fetchBody' => array( 
  652. 'location' => 'query',  
  653. 'type' => 'boolean',  
  654. ),  
  655. 'maxComments' => array( 
  656. 'location' => 'query',  
  657. 'type' => 'integer',  
  658. ),  
  659. 'fetchImages' => array( 
  660. 'location' => 'query',  
  661. 'type' => 'boolean',  
  662. ),  
  663. 'view' => array( 
  664. 'location' => 'query',  
  665. 'type' => 'string',  
  666. ),  
  667. ),  
  668. ), 'getByPath' => array( 
  669. 'path' => 'blogs/{blogId}/posts/bypath',  
  670. 'httpMethod' => 'GET',  
  671. 'parameters' => array( 
  672. 'blogId' => array( 
  673. 'location' => 'path',  
  674. 'type' => 'string',  
  675. 'required' => true,  
  676. ),  
  677. 'path' => array( 
  678. 'location' => 'query',  
  679. 'type' => 'string',  
  680. 'required' => true,  
  681. ),  
  682. 'maxComments' => array( 
  683. 'location' => 'query',  
  684. 'type' => 'integer',  
  685. ),  
  686. 'view' => array( 
  687. 'location' => 'query',  
  688. 'type' => 'string',  
  689. ),  
  690. ),  
  691. ), 'insert' => array( 
  692. 'path' => 'blogs/{blogId}/posts',  
  693. 'httpMethod' => 'POST',  
  694. 'parameters' => array( 
  695. 'blogId' => array( 
  696. 'location' => 'path',  
  697. 'type' => 'string',  
  698. 'required' => true,  
  699. ),  
  700. 'fetchImages' => array( 
  701. 'location' => 'query',  
  702. 'type' => 'boolean',  
  703. ),  
  704. 'isDraft' => array( 
  705. 'location' => 'query',  
  706. 'type' => 'boolean',  
  707. ),  
  708. 'fetchBody' => array( 
  709. 'location' => 'query',  
  710. 'type' => 'boolean',  
  711. ),  
  712. ),  
  713. ), 'list' => array( 
  714. 'path' => 'blogs/{blogId}/posts',  
  715. 'httpMethod' => 'GET',  
  716. 'parameters' => array( 
  717. 'blogId' => array( 
  718. 'location' => 'path',  
  719. 'type' => 'string',  
  720. 'required' => true,  
  721. ),  
  722. 'orderBy' => array( 
  723. 'location' => 'query',  
  724. 'type' => 'string',  
  725. ),  
  726. 'startDate' => array( 
  727. 'location' => 'query',  
  728. 'type' => 'string',  
  729. ),  
  730. 'endDate' => array( 
  731. 'location' => 'query',  
  732. 'type' => 'string',  
  733. ),  
  734. 'labels' => array( 
  735. 'location' => 'query',  
  736. 'type' => 'string',  
  737. ),  
  738. 'maxResults' => array( 
  739. 'location' => 'query',  
  740. 'type' => 'integer',  
  741. ),  
  742. 'fetchImages' => array( 
  743. 'location' => 'query',  
  744. 'type' => 'boolean',  
  745. ),  
  746. 'pageToken' => array( 
  747. 'location' => 'query',  
  748. 'type' => 'string',  
  749. ),  
  750. 'status' => array( 
  751. 'location' => 'query',  
  752. 'type' => 'string',  
  753. 'repeated' => true,  
  754. ),  
  755. 'fetchBodies' => array( 
  756. 'location' => 'query',  
  757. 'type' => 'boolean',  
  758. ),  
  759. 'view' => array( 
  760. 'location' => 'query',  
  761. 'type' => 'string',  
  762. ),  
  763. ),  
  764. ), 'patch' => array( 
  765. 'path' => 'blogs/{blogId}/posts/{postId}',  
  766. 'httpMethod' => 'PATCH',  
  767. 'parameters' => array( 
  768. 'blogId' => array( 
  769. 'location' => 'path',  
  770. 'type' => 'string',  
  771. 'required' => true,  
  772. ),  
  773. 'postId' => array( 
  774. 'location' => 'path',  
  775. 'type' => 'string',  
  776. 'required' => true,  
  777. ),  
  778. 'revert' => array( 
  779. 'location' => 'query',  
  780. 'type' => 'boolean',  
  781. ),  
  782. 'publish' => array( 
  783. 'location' => 'query',  
  784. 'type' => 'boolean',  
  785. ),  
  786. 'fetchBody' => array( 
  787. 'location' => 'query',  
  788. 'type' => 'boolean',  
  789. ),  
  790. 'maxComments' => array( 
  791. 'location' => 'query',  
  792. 'type' => 'integer',  
  793. ),  
  794. 'fetchImages' => array( 
  795. 'location' => 'query',  
  796. 'type' => 'boolean',  
  797. ),  
  798. ),  
  799. ), 'publish' => array( 
  800. 'path' => 'blogs/{blogId}/posts/{postId}/publish',  
  801. 'httpMethod' => 'POST',  
  802. 'parameters' => array( 
  803. 'blogId' => array( 
  804. 'location' => 'path',  
  805. 'type' => 'string',  
  806. 'required' => true,  
  807. ),  
  808. 'postId' => array( 
  809. 'location' => 'path',  
  810. 'type' => 'string',  
  811. 'required' => true,  
  812. ),  
  813. 'publishDate' => array( 
  814. 'location' => 'query',  
  815. 'type' => 'string',  
  816. ),  
  817. ),  
  818. ), 'revert' => array( 
  819. 'path' => 'blogs/{blogId}/posts/{postId}/revert',  
  820. 'httpMethod' => 'POST',  
  821. 'parameters' => array( 
  822. 'blogId' => array( 
  823. 'location' => 'path',  
  824. 'type' => 'string',  
  825. 'required' => true,  
  826. ),  
  827. 'postId' => array( 
  828. 'location' => 'path',  
  829. 'type' => 'string',  
  830. 'required' => true,  
  831. ),  
  832. ),  
  833. ), 'search' => array( 
  834. 'path' => 'blogs/{blogId}/posts/search',  
  835. 'httpMethod' => 'GET',  
  836. 'parameters' => array( 
  837. 'blogId' => array( 
  838. 'location' => 'path',  
  839. 'type' => 'string',  
  840. 'required' => true,  
  841. ),  
  842. 'q' => array( 
  843. 'location' => 'query',  
  844. 'type' => 'string',  
  845. 'required' => true,  
  846. ),  
  847. 'orderBy' => array( 
  848. 'location' => 'query',  
  849. 'type' => 'string',  
  850. ),  
  851. 'fetchBodies' => array( 
  852. 'location' => 'query',  
  853. 'type' => 'boolean',  
  854. ),  
  855. ),  
  856. ), 'update' => array( 
  857. 'path' => 'blogs/{blogId}/posts/{postId}',  
  858. 'httpMethod' => 'PUT',  
  859. 'parameters' => array( 
  860. 'blogId' => array( 
  861. 'location' => 'path',  
  862. 'type' => 'string',  
  863. 'required' => true,  
  864. ),  
  865. 'postId' => array( 
  866. 'location' => 'path',  
  867. 'type' => 'string',  
  868. 'required' => true,  
  869. ),  
  870. 'revert' => array( 
  871. 'location' => 'query',  
  872. 'type' => 'boolean',  
  873. ),  
  874. 'publish' => array( 
  875. 'location' => 'query',  
  876. 'type' => 'boolean',  
  877. ),  
  878. 'fetchBody' => array( 
  879. 'location' => 'query',  
  880. 'type' => 'boolean',  
  881. ),  
  882. 'maxComments' => array( 
  883. 'location' => 'query',  
  884. 'type' => 'integer',  
  885. ),  
  886. 'fetchImages' => array( 
  887. 'location' => 'query',  
  888. 'type' => 'boolean',  
  889. ),  
  890. ),  
  891. ),  
  892. ); 
  893. $this->users = new Google_Service_Blogger_Users_Resource( 
  894. $this,  
  895. $this->serviceName,  
  896. 'users',  
  897. array( 
  898. 'methods' => array( 
  899. 'get' => array( 
  900. 'path' => 'users/{userId}',  
  901. 'httpMethod' => 'GET',  
  902. 'parameters' => array( 
  903. 'userId' => array( 
  904. 'location' => 'path',  
  905. 'type' => 'string',  
  906. 'required' => true,  
  907. ),  
  908. ),  
  909. ),  
  910. ); 
  911.  
  912.  
  913. /** 
  914. * The "blogUserInfos" collection of methods. 
  915. * Typical usage is: 
  916. * <code> 
  917. * $bloggerService = new Google_Service_Blogger(...); 
  918. * $blogUserInfos = $bloggerService->blogUserInfos; 
  919. * </code> 
  920. */ 
  921. class Google_Service_Blogger_BlogUserInfos_Resource extends Google_Service_Resource 
  922.  
  923. /** 
  924. * Gets one blog and user info pair by blogId and userId. (blogUserInfos.get) 
  925. * 
  926. * @param string $userId ID of the user whose blogs are to be fetched. Either 
  927. * the word 'self' (sans quote marks) or the user's profile identifier. 
  928. * @param string $blogId The ID of the blog to get. 
  929. * @param array $optParams Optional parameters. 
  930. * 
  931. * @opt_param string maxPosts Maximum number of posts to pull back with the 
  932. * blog. 
  933. * @return Google_Service_Blogger_BlogUserInfo 
  934. */ 
  935. public function get($userId, $blogId, $optParams = array()) 
  936. $params = array('userId' => $userId, 'blogId' => $blogId); 
  937. $params = array_merge($params, $optParams); 
  938. return $this->call('get', array($params), "Google_Service_Blogger_BlogUserInfo"); 
  939.  
  940. /** 
  941. * The "blogs" collection of methods. 
  942. * Typical usage is: 
  943. * <code> 
  944. * $bloggerService = new Google_Service_Blogger(...); 
  945. * $blogs = $bloggerService->blogs; 
  946. * </code> 
  947. */ 
  948. class Google_Service_Blogger_Blogs_Resource extends Google_Service_Resource 
  949.  
  950. /** 
  951. * Gets one blog by ID. (blogs.get) 
  952. * 
  953. * @param string $blogId The ID of the blog to get. 
  954. * @param array $optParams Optional parameters. 
  955. * 
  956. * @opt_param string maxPosts Maximum number of posts to pull back with the 
  957. * blog. 
  958. * @opt_param string view Access level with which to view the blog. Note that 
  959. * some fields require elevated access. 
  960. * @return Google_Service_Blogger_Blog 
  961. */ 
  962. public function get($blogId, $optParams = array()) 
  963. $params = array('blogId' => $blogId); 
  964. $params = array_merge($params, $optParams); 
  965. return $this->call('get', array($params), "Google_Service_Blogger_Blog"); 
  966.  
  967. /** 
  968. * Retrieve a Blog by URL. (blogs.getByUrl) 
  969. * 
  970. * @param string $url The URL of the blog to retrieve. 
  971. * @param array $optParams Optional parameters. 
  972. * 
  973. * @opt_param string view Access level with which to view the blog. Note that 
  974. * some fields require elevated access. 
  975. * @return Google_Service_Blogger_Blog 
  976. */ 
  977. public function getByUrl($url, $optParams = array()) 
  978. $params = array('url' => $url); 
  979. $params = array_merge($params, $optParams); 
  980. return $this->call('getByUrl', array($params), "Google_Service_Blogger_Blog"); 
  981.  
  982. /** 
  983. * Retrieves a list of blogs, possibly filtered. (blogs.listByUser) 
  984. * 
  985. * @param string $userId ID of the user whose blogs are to be fetched. Either 
  986. * the word 'self' (sans quote marks) or the user's profile identifier. 
  987. * @param array $optParams Optional parameters. 
  988. * 
  989. * @opt_param bool fetchUserInfo Whether the response is a list of blogs with 
  990. * per-user information instead of just blogs. 
  991. * @opt_param string status Blog statuses to include in the result (default: 
  992. * Live blogs only). Note that ADMIN access is required to view deleted blogs. 
  993. * @opt_param string role User access types for blogs to include in the results,  
  994. * e.g. AUTHOR will return blogs where the user has author level access. If no 
  995. * roles are specified, defaults to ADMIN and AUTHOR roles. 
  996. * @opt_param string view Access level with which to view the blogs. Note that 
  997. * some fields require elevated access. 
  998. * @return Google_Service_Blogger_BlogList 
  999. */ 
  1000. public function listByUser($userId, $optParams = array()) 
  1001. $params = array('userId' => $userId); 
  1002. $params = array_merge($params, $optParams); 
  1003. return $this->call('listByUser', array($params), "Google_Service_Blogger_BlogList"); 
  1004.  
  1005. /** 
  1006. * The "comments" collection of methods. 
  1007. * Typical usage is: 
  1008. * <code> 
  1009. * $bloggerService = new Google_Service_Blogger(...); 
  1010. * $comments = $bloggerService->comments; 
  1011. * </code> 
  1012. */ 
  1013. class Google_Service_Blogger_Comments_Resource extends Google_Service_Resource 
  1014.  
  1015. /** 
  1016. * Marks a comment as not spam. (comments.approve) 
  1017. * 
  1018. * @param string $blogId The ID of the Blog. 
  1019. * @param string $postId The ID of the Post. 
  1020. * @param string $commentId The ID of the comment to mark as not spam. 
  1021. * @param array $optParams Optional parameters. 
  1022. * @return Google_Service_Blogger_Comment 
  1023. */ 
  1024. public function approve($blogId, $postId, $commentId, $optParams = array()) 
  1025. $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); 
  1026. $params = array_merge($params, $optParams); 
  1027. return $this->call('approve', array($params), "Google_Service_Blogger_Comment"); 
  1028.  
  1029. /** 
  1030. * Delete a comment by ID. (comments.delete) 
  1031. * 
  1032. * @param string $blogId The ID of the Blog. 
  1033. * @param string $postId The ID of the Post. 
  1034. * @param string $commentId The ID of the comment to delete. 
  1035. * @param array $optParams Optional parameters. 
  1036. */ 
  1037. public function delete($blogId, $postId, $commentId, $optParams = array()) 
  1038. $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); 
  1039. $params = array_merge($params, $optParams); 
  1040. return $this->call('delete', array($params)); 
  1041.  
  1042. /** 
  1043. * Gets one comment by ID. (comments.get) 
  1044. * 
  1045. * @param string $blogId ID of the blog to containing the comment. 
  1046. * @param string $postId ID of the post to fetch posts from. 
  1047. * @param string $commentId The ID of the comment to get. 
  1048. * @param array $optParams Optional parameters. 
  1049. * 
  1050. * @opt_param string view Access level for the requested comment (default: 
  1051. * READER). Note that some comments will require elevated permissions, for 
  1052. * example comments where the parent posts which is in a draft state, or 
  1053. * comments that are pending moderation. 
  1054. * @return Google_Service_Blogger_Comment 
  1055. */ 
  1056. public function get($blogId, $postId, $commentId, $optParams = array()) 
  1057. $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); 
  1058. $params = array_merge($params, $optParams); 
  1059. return $this->call('get', array($params), "Google_Service_Blogger_Comment"); 
  1060.  
  1061. /** 
  1062. * Retrieves the comments for a post, possibly filtered. (comments.listComments) 
  1063. * 
  1064. * @param string $blogId ID of the blog to fetch comments from. 
  1065. * @param string $postId ID of the post to fetch posts from. 
  1066. * @param array $optParams Optional parameters. 
  1067. * 
  1068. * @opt_param string status 
  1069. * @opt_param string startDate Earliest date of comment to fetch, a date-time 
  1070. * with RFC 3339 formatting. 
  1071. * @opt_param string endDate Latest date of comment to fetch, a date-time with 
  1072. * RFC 3339 formatting. 
  1073. * @opt_param string maxResults Maximum number of comments to include in the 
  1074. * result. 
  1075. * @opt_param string pageToken Continuation token if request is paged. 
  1076. * @opt_param bool fetchBodies Whether the body content of the comments is 
  1077. * included. 
  1078. * @opt_param string view Access level with which to view the returned result. 
  1079. * Note that some fields require elevated access. 
  1080. * @return Google_Service_Blogger_CommentList 
  1081. */ 
  1082. public function listComments($blogId, $postId, $optParams = array()) 
  1083. $params = array('blogId' => $blogId, 'postId' => $postId); 
  1084. $params = array_merge($params, $optParams); 
  1085. return $this->call('list', array($params), "Google_Service_Blogger_CommentList"); 
  1086.  
  1087. /** 
  1088. * Retrieves the comments for a blog, across all posts, possibly filtered. 
  1089. * (comments.listByBlog) 
  1090. * 
  1091. * @param string $blogId ID of the blog to fetch comments from. 
  1092. * @param array $optParams Optional parameters. 
  1093. * 
  1094. * @opt_param string status 
  1095. * @opt_param string startDate Earliest date of comment to fetch, a date-time 
  1096. * with RFC 3339 formatting. 
  1097. * @opt_param string endDate Latest date of comment to fetch, a date-time with 
  1098. * RFC 3339 formatting. 
  1099. * @opt_param string maxResults Maximum number of comments to include in the 
  1100. * result. 
  1101. * @opt_param string pageToken Continuation token if request is paged. 
  1102. * @opt_param bool fetchBodies Whether the body content of the comments is 
  1103. * included. 
  1104. * @return Google_Service_Blogger_CommentList 
  1105. */ 
  1106. public function listByBlog($blogId, $optParams = array()) 
  1107. $params = array('blogId' => $blogId); 
  1108. $params = array_merge($params, $optParams); 
  1109. return $this->call('listByBlog', array($params), "Google_Service_Blogger_CommentList"); 
  1110.  
  1111. /** 
  1112. * Marks a comment as spam. (comments.markAsSpam) 
  1113. * 
  1114. * @param string $blogId The ID of the Blog. 
  1115. * @param string $postId The ID of the Post. 
  1116. * @param string $commentId The ID of the comment to mark as spam. 
  1117. * @param array $optParams Optional parameters. 
  1118. * @return Google_Service_Blogger_Comment 
  1119. */ 
  1120. public function markAsSpam($blogId, $postId, $commentId, $optParams = array()) 
  1121. $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); 
  1122. $params = array_merge($params, $optParams); 
  1123. return $this->call('markAsSpam', array($params), "Google_Service_Blogger_Comment"); 
  1124.  
  1125. /** 
  1126. * Removes the content of a comment. (comments.removeContent) 
  1127. * 
  1128. * @param string $blogId The ID of the Blog. 
  1129. * @param string $postId The ID of the Post. 
  1130. * @param string $commentId The ID of the comment to delete content from. 
  1131. * @param array $optParams Optional parameters. 
  1132. * @return Google_Service_Blogger_Comment 
  1133. */ 
  1134. public function removeContent($blogId, $postId, $commentId, $optParams = array()) 
  1135. $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); 
  1136. $params = array_merge($params, $optParams); 
  1137. return $this->call('removeContent', array($params), "Google_Service_Blogger_Comment"); 
  1138.  
  1139. /** 
  1140. * The "pageViews" collection of methods. 
  1141. * Typical usage is: 
  1142. * <code> 
  1143. * $bloggerService = new Google_Service_Blogger(...); 
  1144. * $pageViews = $bloggerService->pageViews; 
  1145. * </code> 
  1146. */ 
  1147. class Google_Service_Blogger_PageViews_Resource extends Google_Service_Resource 
  1148.  
  1149. /** 
  1150. * Retrieve pageview stats for a Blog. (pageViews.get) 
  1151. * 
  1152. * @param string $blogId The ID of the blog to get. 
  1153. * @param array $optParams Optional parameters. 
  1154. * 
  1155. * @opt_param string range 
  1156. * @return Google_Service_Blogger_Pageviews 
  1157. */ 
  1158. public function get($blogId, $optParams = array()) 
  1159. $params = array('blogId' => $blogId); 
  1160. $params = array_merge($params, $optParams); 
  1161. return $this->call('get', array($params), "Google_Service_Blogger_Pageviews"); 
  1162.  
  1163. /** 
  1164. * The "pages" collection of methods. 
  1165. * Typical usage is: 
  1166. * <code> 
  1167. * $bloggerService = new Google_Service_Blogger(...); 
  1168. * $pages = $bloggerService->pages; 
  1169. * </code> 
  1170. */ 
  1171. class Google_Service_Blogger_Pages_Resource extends Google_Service_Resource 
  1172.  
  1173. /** 
  1174. * Delete a page by ID. (pages.delete) 
  1175. * 
  1176. * @param string $blogId The ID of the Blog. 
  1177. * @param string $pageId The ID of the Page. 
  1178. * @param array $optParams Optional parameters. 
  1179. */ 
  1180. public function delete($blogId, $pageId, $optParams = array()) 
  1181. $params = array('blogId' => $blogId, 'pageId' => $pageId); 
  1182. $params = array_merge($params, $optParams); 
  1183. return $this->call('delete', array($params)); 
  1184.  
  1185. /** 
  1186. * Gets one blog page by ID. (pages.get) 
  1187. * 
  1188. * @param string $blogId ID of the blog containing the page. 
  1189. * @param string $pageId The ID of the page to get. 
  1190. * @param array $optParams Optional parameters. 
  1191. * 
  1192. * @opt_param string view 
  1193. * @return Google_Service_Blogger_Page 
  1194. */ 
  1195. public function get($blogId, $pageId, $optParams = array()) 
  1196. $params = array('blogId' => $blogId, 'pageId' => $pageId); 
  1197. $params = array_merge($params, $optParams); 
  1198. return $this->call('get', array($params), "Google_Service_Blogger_Page"); 
  1199.  
  1200. /** 
  1201. * Add a page. (pages.insert) 
  1202. * 
  1203. * @param string $blogId ID of the blog to add the page to. 
  1204. * @param Google_Page $postBody 
  1205. * @param array $optParams Optional parameters. 
  1206. * 
  1207. * @opt_param bool isDraft Whether to create the page as a draft (default: 
  1208. * false). 
  1209. * @return Google_Service_Blogger_Page 
  1210. */ 
  1211. public function insert($blogId, Google_Service_Blogger_Page $postBody, $optParams = array()) 
  1212. $params = array('blogId' => $blogId, 'postBody' => $postBody); 
  1213. $params = array_merge($params, $optParams); 
  1214. return $this->call('insert', array($params), "Google_Service_Blogger_Page"); 
  1215.  
  1216. /** 
  1217. * Retrieves the pages for a blog, optionally including non-LIVE statuses. 
  1218. * (pages.listPages) 
  1219. * 
  1220. * @param string $blogId ID of the blog to fetch Pages from. 
  1221. * @param array $optParams Optional parameters. 
  1222. * 
  1223. * @opt_param string status 
  1224. * @opt_param string maxResults Maximum number of Pages to fetch. 
  1225. * @opt_param string pageToken Continuation token if the request is paged. 
  1226. * @opt_param bool fetchBodies Whether to retrieve the Page bodies. 
  1227. * @opt_param string view Access level with which to view the returned result. 
  1228. * Note that some fields require elevated access. 
  1229. * @return Google_Service_Blogger_PageList 
  1230. */ 
  1231. public function listPages($blogId, $optParams = array()) 
  1232. $params = array('blogId' => $blogId); 
  1233. $params = array_merge($params, $optParams); 
  1234. return $this->call('list', array($params), "Google_Service_Blogger_PageList"); 
  1235.  
  1236. /** 
  1237. * Update a page. This method supports patch semantics. (pages.patch) 
  1238. * 
  1239. * @param string $blogId The ID of the Blog. 
  1240. * @param string $pageId The ID of the Page. 
  1241. * @param Google_Page $postBody 
  1242. * @param array $optParams Optional parameters. 
  1243. * 
  1244. * @opt_param bool revert Whether a revert action should be performed when the 
  1245. * page is updated (default: false). 
  1246. * @opt_param bool publish Whether a publish action should be performed when the 
  1247. * page is updated (default: false). 
  1248. * @return Google_Service_Blogger_Page 
  1249. */ 
  1250. public function patch($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array()) 
  1251. $params = array('blogId' => $blogId, 'pageId' => $pageId, 'postBody' => $postBody); 
  1252. $params = array_merge($params, $optParams); 
  1253. return $this->call('patch', array($params), "Google_Service_Blogger_Page"); 
  1254.  
  1255. /** 
  1256. * Publishes a draft page. (pages.publish) 
  1257. * 
  1258. * @param string $blogId The ID of the blog. 
  1259. * @param string $pageId The ID of the page. 
  1260. * @param array $optParams Optional parameters. 
  1261. * @return Google_Service_Blogger_Page 
  1262. */ 
  1263. public function publish($blogId, $pageId, $optParams = array()) 
  1264. $params = array('blogId' => $blogId, 'pageId' => $pageId); 
  1265. $params = array_merge($params, $optParams); 
  1266. return $this->call('publish', array($params), "Google_Service_Blogger_Page"); 
  1267.  
  1268. /** 
  1269. * Revert a published or scheduled page to draft state. (pages.revert) 
  1270. * 
  1271. * @param string $blogId The ID of the blog. 
  1272. * @param string $pageId The ID of the page. 
  1273. * @param array $optParams Optional parameters. 
  1274. * @return Google_Service_Blogger_Page 
  1275. */ 
  1276. public function revert($blogId, $pageId, $optParams = array()) 
  1277. $params = array('blogId' => $blogId, 'pageId' => $pageId); 
  1278. $params = array_merge($params, $optParams); 
  1279. return $this->call('revert', array($params), "Google_Service_Blogger_Page"); 
  1280.  
  1281. /** 
  1282. * Update a page. (pages.update) 
  1283. * 
  1284. * @param string $blogId The ID of the Blog. 
  1285. * @param string $pageId The ID of the Page. 
  1286. * @param Google_Page $postBody 
  1287. * @param array $optParams Optional parameters. 
  1288. * 
  1289. * @opt_param bool revert Whether a revert action should be performed when the 
  1290. * page is updated (default: false). 
  1291. * @opt_param bool publish Whether a publish action should be performed when the 
  1292. * page is updated (default: false). 
  1293. * @return Google_Service_Blogger_Page 
  1294. */ 
  1295. public function update($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array()) 
  1296. $params = array('blogId' => $blogId, 'pageId' => $pageId, 'postBody' => $postBody); 
  1297. $params = array_merge($params, $optParams); 
  1298. return $this->call('update', array($params), "Google_Service_Blogger_Page"); 
  1299.  
  1300. /** 
  1301. * The "postUserInfos" collection of methods. 
  1302. * Typical usage is: 
  1303. * <code> 
  1304. * $bloggerService = new Google_Service_Blogger(...); 
  1305. * $postUserInfos = $bloggerService->postUserInfos; 
  1306. * </code> 
  1307. */ 
  1308. class Google_Service_Blogger_PostUserInfos_Resource extends Google_Service_Resource 
  1309.  
  1310. /** 
  1311. * Gets one post and user info pair, by post ID and user ID. The post user info 
  1312. * contains per-user information about the post, such as access rights, specific 
  1313. * to the user. (postUserInfos.get) 
  1314. * 
  1315. * @param string $userId ID of the user for the per-user information to be 
  1316. * fetched. Either the word 'self' (sans quote marks) or the user's profile 
  1317. * identifier. 
  1318. * @param string $blogId The ID of the blog. 
  1319. * @param string $postId The ID of the post to get. 
  1320. * @param array $optParams Optional parameters. 
  1321. * 
  1322. * @opt_param string maxComments Maximum number of comments to pull back on a 
  1323. * post. 
  1324. * @return Google_Service_Blogger_PostUserInfo 
  1325. */ 
  1326. public function get($userId, $blogId, $postId, $optParams = array()) 
  1327. $params = array('userId' => $userId, 'blogId' => $blogId, 'postId' => $postId); 
  1328. $params = array_merge($params, $optParams); 
  1329. return $this->call('get', array($params), "Google_Service_Blogger_PostUserInfo"); 
  1330.  
  1331. /** 
  1332. * Retrieves a list of post and post user info pairs, possibly filtered. The 
  1333. * post user info contains per-user information about the post, such as access 
  1334. * rights, specific to the user. (postUserInfos.listPostUserInfos) 
  1335. * 
  1336. * @param string $userId ID of the user for the per-user information to be 
  1337. * fetched. Either the word 'self' (sans quote marks) or the user's profile 
  1338. * identifier. 
  1339. * @param string $blogId ID of the blog to fetch posts from. 
  1340. * @param array $optParams Optional parameters. 
  1341. * 
  1342. * @opt_param string orderBy Sort order applied to search results. Default is 
  1343. * published. 
  1344. * @opt_param string startDate Earliest post date to fetch, a date-time with RFC 
  1345. * 3339 formatting. 
  1346. * @opt_param string endDate Latest post date to fetch, a date-time with RFC 
  1347. * 3339 formatting. 
  1348. * @opt_param string labels Comma-separated list of labels to search for. 
  1349. * @opt_param string maxResults Maximum number of posts to fetch. 
  1350. * @opt_param string pageToken Continuation token if the request is paged. 
  1351. * @opt_param string status 
  1352. * @opt_param bool fetchBodies Whether the body content of posts is included. 
  1353. * Default is false. 
  1354. * @opt_param string view Access level with which to view the returned result. 
  1355. * Note that some fields require elevated access. 
  1356. * @return Google_Service_Blogger_PostUserInfosList 
  1357. */ 
  1358. public function listPostUserInfos($userId, $blogId, $optParams = array()) 
  1359. $params = array('userId' => $userId, 'blogId' => $blogId); 
  1360. $params = array_merge($params, $optParams); 
  1361. return $this->call('list', array($params), "Google_Service_Blogger_PostUserInfosList"); 
  1362.  
  1363. /** 
  1364. * The "posts" collection of methods. 
  1365. * Typical usage is: 
  1366. * <code> 
  1367. * $bloggerService = new Google_Service_Blogger(...); 
  1368. * $posts = $bloggerService->posts; 
  1369. * </code> 
  1370. */ 
  1371. class Google_Service_Blogger_Posts_Resource extends Google_Service_Resource 
  1372.  
  1373. /** 
  1374. * Delete a post by ID. (posts.delete) 
  1375. * 
  1376. * @param string $blogId The ID of the Blog. 
  1377. * @param string $postId The ID of the Post. 
  1378. * @param array $optParams Optional parameters. 
  1379. */ 
  1380. public function delete($blogId, $postId, $optParams = array()) 
  1381. $params = array('blogId' => $blogId, 'postId' => $postId); 
  1382. $params = array_merge($params, $optParams); 
  1383. return $this->call('delete', array($params)); 
  1384.  
  1385. /** 
  1386. * Get a post by ID. (posts.get) 
  1387. * 
  1388. * @param string $blogId ID of the blog to fetch the post from. 
  1389. * @param string $postId The ID of the post 
  1390. * @param array $optParams Optional parameters. 
  1391. * 
  1392. * @opt_param bool fetchBody Whether the body content of the post is included 
  1393. * (default: true). This should be set to false when the post bodies are not 
  1394. * required, to help minimize traffic. 
  1395. * @opt_param string maxComments Maximum number of comments to pull back on a 
  1396. * post. 
  1397. * @opt_param bool fetchImages Whether image URL metadata for each post is 
  1398. * included (default: false). 
  1399. * @opt_param string view Access level with which to view the returned result. 
  1400. * Note that some fields require elevated access. 
  1401. * @return Google_Service_Blogger_Post 
  1402. */ 
  1403. public function get($blogId, $postId, $optParams = array()) 
  1404. $params = array('blogId' => $blogId, 'postId' => $postId); 
  1405. $params = array_merge($params, $optParams); 
  1406. return $this->call('get', array($params), "Google_Service_Blogger_Post"); 
  1407.  
  1408. /** 
  1409. * Retrieve a Post by Path. (posts.getByPath) 
  1410. * 
  1411. * @param string $blogId ID of the blog to fetch the post from. 
  1412. * @param string $path Path of the Post to retrieve. 
  1413. * @param array $optParams Optional parameters. 
  1414. * 
  1415. * @opt_param string maxComments Maximum number of comments to pull back on a 
  1416. * post. 
  1417. * @opt_param string view Access level with which to view the returned result. 
  1418. * Note that some fields require elevated access. 
  1419. * @return Google_Service_Blogger_Post 
  1420. */ 
  1421. public function getByPath($blogId, $path, $optParams = array()) 
  1422. $params = array('blogId' => $blogId, 'path' => $path); 
  1423. $params = array_merge($params, $optParams); 
  1424. return $this->call('getByPath', array($params), "Google_Service_Blogger_Post"); 
  1425.  
  1426. /** 
  1427. * Add a post. (posts.insert) 
  1428. * 
  1429. * @param string $blogId ID of the blog to add the post to. 
  1430. * @param Google_Post $postBody 
  1431. * @param array $optParams Optional parameters. 
  1432. * 
  1433. * @opt_param bool fetchImages Whether image URL metadata for each post is 
  1434. * included in the returned result (default: false). 
  1435. * @opt_param bool isDraft Whether to create the post as a draft (default: 
  1436. * false). 
  1437. * @opt_param bool fetchBody Whether the body content of the post is included 
  1438. * with the result (default: true). 
  1439. * @return Google_Service_Blogger_Post 
  1440. */ 
  1441. public function insert($blogId, Google_Service_Blogger_Post $postBody, $optParams = array()) 
  1442. $params = array('blogId' => $blogId, 'postBody' => $postBody); 
  1443. $params = array_merge($params, $optParams); 
  1444. return $this->call('insert', array($params), "Google_Service_Blogger_Post"); 
  1445.  
  1446. /** 
  1447. * Retrieves a list of posts, possibly filtered. (posts.listPosts) 
  1448. * 
  1449. * @param string $blogId ID of the blog to fetch posts from. 
  1450. * @param array $optParams Optional parameters. 
  1451. * 
  1452. * @opt_param string orderBy Sort search results 
  1453. * @opt_param string startDate Earliest post date to fetch, a date-time with RFC 
  1454. * 3339 formatting. 
  1455. * @opt_param string endDate Latest post date to fetch, a date-time with RFC 
  1456. * 3339 formatting. 
  1457. * @opt_param string labels Comma-separated list of labels to search for. 
  1458. * @opt_param string maxResults Maximum number of posts to fetch. 
  1459. * @opt_param bool fetchImages Whether image URL metadata for each post is 
  1460. * included. 
  1461. * @opt_param string pageToken Continuation token if the request is paged. 
  1462. * @opt_param string status Statuses to include in the results. 
  1463. * @opt_param bool fetchBodies Whether the body content of posts is included 
  1464. * (default: true). This should be set to false when the post bodies are not 
  1465. * required, to help minimize traffic. 
  1466. * @opt_param string view Access level with which to view the returned result. 
  1467. * Note that some fields require escalated access. 
  1468. * @return Google_Service_Blogger_PostList 
  1469. */ 
  1470. public function listPosts($blogId, $optParams = array()) 
  1471. $params = array('blogId' => $blogId); 
  1472. $params = array_merge($params, $optParams); 
  1473. return $this->call('list', array($params), "Google_Service_Blogger_PostList"); 
  1474.  
  1475. /** 
  1476. * Update a post. This method supports patch semantics. (posts.patch) 
  1477. * 
  1478. * @param string $blogId The ID of the Blog. 
  1479. * @param string $postId The ID of the Post. 
  1480. * @param Google_Post $postBody 
  1481. * @param array $optParams Optional parameters. 
  1482. * 
  1483. * @opt_param bool revert Whether a revert action should be performed when the 
  1484. * post is updated (default: false). 
  1485. * @opt_param bool publish Whether a publish action should be performed when the 
  1486. * post is updated (default: false). 
  1487. * @opt_param bool fetchBody Whether the body content of the post is included 
  1488. * with the result (default: true). 
  1489. * @opt_param string maxComments Maximum number of comments to retrieve with the 
  1490. * returned post. 
  1491. * @opt_param bool fetchImages Whether image URL metadata for each post is 
  1492. * included in the returned result (default: false). 
  1493. * @return Google_Service_Blogger_Post 
  1494. */ 
  1495. public function patch($blogId, $postId, Google_Service_Blogger_Post $postBody, $optParams = array()) 
  1496. $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody); 
  1497. $params = array_merge($params, $optParams); 
  1498. return $this->call('patch', array($params), "Google_Service_Blogger_Post"); 
  1499.  
  1500. /** 
  1501. * Publishes a draft post, optionally at the specific time of the given 
  1502. * publishDate parameter. (posts.publish) 
  1503. * 
  1504. * @param string $blogId The ID of the Blog. 
  1505. * @param string $postId The ID of the Post. 
  1506. * @param array $optParams Optional parameters. 
  1507. * 
  1508. * @opt_param string publishDate Optional date and time to schedule the 
  1509. * publishing of the Blog. If no publishDate parameter is given, the post is 
  1510. * either published at the a previously saved schedule date (if present), or the 
  1511. * current time. If a future date is given, the post will be scheduled to be 
  1512. * published. 
  1513. * @return Google_Service_Blogger_Post 
  1514. */ 
  1515. public function publish($blogId, $postId, $optParams = array()) 
  1516. $params = array('blogId' => $blogId, 'postId' => $postId); 
  1517. $params = array_merge($params, $optParams); 
  1518. return $this->call('publish', array($params), "Google_Service_Blogger_Post"); 
  1519.  
  1520. /** 
  1521. * Revert a published or scheduled post to draft state. (posts.revert) 
  1522. * 
  1523. * @param string $blogId The ID of the Blog. 
  1524. * @param string $postId The ID of the Post. 
  1525. * @param array $optParams Optional parameters. 
  1526. * @return Google_Service_Blogger_Post 
  1527. */ 
  1528. public function revert($blogId, $postId, $optParams = array()) 
  1529. $params = array('blogId' => $blogId, 'postId' => $postId); 
  1530. $params = array_merge($params, $optParams); 
  1531. return $this->call('revert', array($params), "Google_Service_Blogger_Post"); 
  1532.  
  1533. /** 
  1534. * Search for a post. (posts.search) 
  1535. * 
  1536. * @param string $blogId ID of the blog to fetch the post from. 
  1537. * @param string $q Query terms to search this blog for matching posts. 
  1538. * @param array $optParams Optional parameters. 
  1539. * 
  1540. * @opt_param string orderBy Sort search results 
  1541. * @opt_param bool fetchBodies Whether the body content of posts is included 
  1542. * (default: true). This should be set to false when the post bodies are not 
  1543. * required, to help minimize traffic. 
  1544. * @return Google_Service_Blogger_PostList 
  1545. */ 
  1546. public function search($blogId, $q, $optParams = array()) 
  1547. $params = array('blogId' => $blogId, 'q' => $q); 
  1548. $params = array_merge($params, $optParams); 
  1549. return $this->call('search', array($params), "Google_Service_Blogger_PostList"); 
  1550.  
  1551. /** 
  1552. * Update a post. (posts.update) 
  1553. * 
  1554. * @param string $blogId The ID of the Blog. 
  1555. * @param string $postId The ID of the Post. 
  1556. * @param Google_Post $postBody 
  1557. * @param array $optParams Optional parameters. 
  1558. * 
  1559. * @opt_param bool revert Whether a revert action should be performed when the 
  1560. * post is updated (default: false). 
  1561. * @opt_param bool publish Whether a publish action should be performed when the 
  1562. * post is updated (default: false). 
  1563. * @opt_param bool fetchBody Whether the body content of the post is included 
  1564. * with the result (default: true). 
  1565. * @opt_param string maxComments Maximum number of comments to retrieve with the 
  1566. * returned post. 
  1567. * @opt_param bool fetchImages Whether image URL metadata for each post is 
  1568. * included in the returned result (default: false). 
  1569. * @return Google_Service_Blogger_Post 
  1570. */ 
  1571. public function update($blogId, $postId, Google_Service_Blogger_Post $postBody, $optParams = array()) 
  1572. $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody); 
  1573. $params = array_merge($params, $optParams); 
  1574. return $this->call('update', array($params), "Google_Service_Blogger_Post"); 
  1575.  
  1576. /** 
  1577. * The "users" collection of methods. 
  1578. * Typical usage is: 
  1579. * <code> 
  1580. * $bloggerService = new Google_Service_Blogger(...); 
  1581. * $users = $bloggerService->users; 
  1582. * </code> 
  1583. */ 
  1584. class Google_Service_Blogger_Users_Resource extends Google_Service_Resource 
  1585.  
  1586. /** 
  1587. * Gets one user by ID. (users.get) 
  1588. * 
  1589. * @param string $userId The ID of the user to get. 
  1590. * @param array $optParams Optional parameters. 
  1591. * @return Google_Service_Blogger_User 
  1592. */ 
  1593. public function get($userId, $optParams = array()) 
  1594. $params = array('userId' => $userId); 
  1595. $params = array_merge($params, $optParams); 
  1596. return $this->call('get', array($params), "Google_Service_Blogger_User"); 
  1597.  
  1598.  
  1599.  
  1600.  
  1601. class Google_Service_Blogger_Blog extends Google_Model 
  1602. protected $internal_gapi_mappings = array( 
  1603. ); 
  1604. public $customMetaData; 
  1605. public $description; 
  1606. public $id; 
  1607. public $kind; 
  1608. protected $localeType = 'Google_Service_Blogger_BlogLocale'; 
  1609. protected $localeDataType = ''; 
  1610. public $name; 
  1611. protected $pagesType = 'Google_Service_Blogger_BlogPages'; 
  1612. protected $pagesDataType = ''; 
  1613. protected $postsType = 'Google_Service_Blogger_BlogPosts'; 
  1614. protected $postsDataType = ''; 
  1615. public $published; 
  1616. public $selfLink; 
  1617. public $status; 
  1618. public $updated; 
  1619. public $url; 
  1620.  
  1621.  
  1622. public function setCustomMetaData($customMetaData) 
  1623. $this->customMetaData = $customMetaData; 
  1624. public function getCustomMetaData() 
  1625. return $this->customMetaData; 
  1626. public function setDescription($description) 
  1627. $this->description = $description; 
  1628. public function getDescription() 
  1629. return $this->description; 
  1630. public function setId($id) 
  1631. $this->id = $id; 
  1632. public function getId() 
  1633. return $this->id; 
  1634. public function setKind($kind) 
  1635. $this->kind = $kind; 
  1636. public function getKind() 
  1637. return $this->kind; 
  1638. public function setLocale(Google_Service_Blogger_BlogLocale $locale) 
  1639. $this->locale = $locale; 
  1640. public function getLocale() 
  1641. return $this->locale; 
  1642. public function setName($name) 
  1643. $this->name = $name; 
  1644. public function getName() 
  1645. return $this->name; 
  1646. public function setPages(Google_Service_Blogger_BlogPages $pages) 
  1647. $this->pages = $pages; 
  1648. public function getPages() 
  1649. return $this->pages; 
  1650. public function setPosts(Google_Service_Blogger_BlogPosts $posts) 
  1651. $this->posts = $posts; 
  1652. public function getPosts() 
  1653. return $this->posts; 
  1654. public function setPublished($published) 
  1655. $this->published = $published; 
  1656. public function getPublished() 
  1657. return $this->published; 
  1658. public function setSelfLink($selfLink) 
  1659. $this->selfLink = $selfLink; 
  1660. public function getSelfLink() 
  1661. return $this->selfLink; 
  1662. public function setStatus($status) 
  1663. $this->status = $status; 
  1664. public function getStatus() 
  1665. return $this->status; 
  1666. public function setUpdated($updated) 
  1667. $this->updated = $updated; 
  1668. public function getUpdated() 
  1669. return $this->updated; 
  1670. public function setUrl($url) 
  1671. $this->url = $url; 
  1672. public function getUrl() 
  1673. return $this->url; 
  1674.  
  1675. class Google_Service_Blogger_BlogList extends Google_Collection 
  1676. protected $collection_key = 'items'; 
  1677. protected $internal_gapi_mappings = array( 
  1678. ); 
  1679. protected $blogUserInfosType = 'Google_Service_Blogger_BlogUserInfo'; 
  1680. protected $blogUserInfosDataType = 'array'; 
  1681. protected $itemsType = 'Google_Service_Blogger_Blog'; 
  1682. protected $itemsDataType = 'array'; 
  1683. public $kind; 
  1684.  
  1685.  
  1686. public function setBlogUserInfos($blogUserInfos) 
  1687. $this->blogUserInfos = $blogUserInfos; 
  1688. public function getBlogUserInfos() 
  1689. return $this->blogUserInfos; 
  1690. public function setItems($items) 
  1691. $this->items = $items; 
  1692. public function getItems() 
  1693. return $this->items; 
  1694. public function setKind($kind) 
  1695. $this->kind = $kind; 
  1696. public function getKind() 
  1697. return $this->kind; 
  1698.  
  1699. class Google_Service_Blogger_BlogLocale extends Google_Model 
  1700. protected $internal_gapi_mappings = array( 
  1701. ); 
  1702. public $country; 
  1703. public $language; 
  1704. public $variant; 
  1705.  
  1706.  
  1707. public function setCountry($country) 
  1708. $this->country = $country; 
  1709. public function getCountry() 
  1710. return $this->country; 
  1711. public function setLanguage($language) 
  1712. $this->language = $language; 
  1713. public function getLanguage() 
  1714. return $this->language; 
  1715. public function setVariant($variant) 
  1716. $this->variant = $variant; 
  1717. public function getVariant() 
  1718. return $this->variant; 
  1719.  
  1720. class Google_Service_Blogger_BlogPages extends Google_Model 
  1721. protected $internal_gapi_mappings = array( 
  1722. ); 
  1723. public $selfLink; 
  1724. public $totalItems; 
  1725.  
  1726.  
  1727. public function setSelfLink($selfLink) 
  1728. $this->selfLink = $selfLink; 
  1729. public function getSelfLink() 
  1730. return $this->selfLink; 
  1731. public function setTotalItems($totalItems) 
  1732. $this->totalItems = $totalItems; 
  1733. public function getTotalItems() 
  1734. return $this->totalItems; 
  1735.  
  1736. class Google_Service_Blogger_BlogPerUserInfo extends Google_Model 
  1737. protected $internal_gapi_mappings = array( 
  1738. ); 
  1739. public $blogId; 
  1740. public $hasAdminAccess; 
  1741. public $kind; 
  1742. public $photosAlbumKey; 
  1743. public $role; 
  1744. public $userId; 
  1745.  
  1746.  
  1747. public function setBlogId($blogId) 
  1748. $this->blogId = $blogId; 
  1749. public function getBlogId() 
  1750. return $this->blogId; 
  1751. public function setHasAdminAccess($hasAdminAccess) 
  1752. $this->hasAdminAccess = $hasAdminAccess; 
  1753. public function getHasAdminAccess() 
  1754. return $this->hasAdminAccess; 
  1755. public function setKind($kind) 
  1756. $this->kind = $kind; 
  1757. public function getKind() 
  1758. return $this->kind; 
  1759. public function setPhotosAlbumKey($photosAlbumKey) 
  1760. $this->photosAlbumKey = $photosAlbumKey; 
  1761. public function getPhotosAlbumKey() 
  1762. return $this->photosAlbumKey; 
  1763. public function setRole($role) 
  1764. $this->role = $role; 
  1765. public function getRole() 
  1766. return $this->role; 
  1767. public function setUserId($userId) 
  1768. $this->userId = $userId; 
  1769. public function getUserId() 
  1770. return $this->userId; 
  1771.  
  1772. class Google_Service_Blogger_BlogPosts extends Google_Collection 
  1773. protected $collection_key = 'items'; 
  1774. protected $internal_gapi_mappings = array( 
  1775. ); 
  1776. protected $itemsType = 'Google_Service_Blogger_Post'; 
  1777. protected $itemsDataType = 'array'; 
  1778. public $selfLink; 
  1779. public $totalItems; 
  1780.  
  1781.  
  1782. public function setItems($items) 
  1783. $this->items = $items; 
  1784. public function getItems() 
  1785. return $this->items; 
  1786. public function setSelfLink($selfLink) 
  1787. $this->selfLink = $selfLink; 
  1788. public function getSelfLink() 
  1789. return $this->selfLink; 
  1790. public function setTotalItems($totalItems) 
  1791. $this->totalItems = $totalItems; 
  1792. public function getTotalItems() 
  1793. return $this->totalItems; 
  1794.  
  1795. class Google_Service_Blogger_BlogUserInfo extends Google_Model 
  1796. protected $internal_gapi_mappings = array( 
  1797. "blogUserInfo" => "blog_user_info",  
  1798. ); 
  1799. protected $blogType = 'Google_Service_Blogger_Blog'; 
  1800. protected $blogDataType = ''; 
  1801. protected $blogUserInfoType = 'Google_Service_Blogger_BlogPerUserInfo'; 
  1802. protected $blogUserInfoDataType = ''; 
  1803. public $kind; 
  1804.  
  1805.  
  1806. public function setBlog(Google_Service_Blogger_Blog $blog) 
  1807. $this->blog = $blog; 
  1808. public function getBlog() 
  1809. return $this->blog; 
  1810. public function setBlogUserInfo(Google_Service_Blogger_BlogPerUserInfo $blogUserInfo) 
  1811. $this->blogUserInfo = $blogUserInfo; 
  1812. public function getBlogUserInfo() 
  1813. return $this->blogUserInfo; 
  1814. public function setKind($kind) 
  1815. $this->kind = $kind; 
  1816. public function getKind() 
  1817. return $this->kind; 
  1818.  
  1819. class Google_Service_Blogger_Comment extends Google_Model 
  1820. protected $internal_gapi_mappings = array( 
  1821. ); 
  1822. protected $authorType = 'Google_Service_Blogger_CommentAuthor'; 
  1823. protected $authorDataType = ''; 
  1824. protected $blogType = 'Google_Service_Blogger_CommentBlog'; 
  1825. protected $blogDataType = ''; 
  1826. public $content; 
  1827. public $id; 
  1828. protected $inReplyToType = 'Google_Service_Blogger_CommentInReplyTo'; 
  1829. protected $inReplyToDataType = ''; 
  1830. public $kind; 
  1831. protected $postType = 'Google_Service_Blogger_CommentPost'; 
  1832. protected $postDataType = ''; 
  1833. public $published; 
  1834. public $selfLink; 
  1835. public $status; 
  1836. public $updated; 
  1837.  
  1838.  
  1839. public function setAuthor(Google_Service_Blogger_CommentAuthor $author) 
  1840. $this->author = $author; 
  1841. public function getAuthor() 
  1842. return $this->author; 
  1843. public function setBlog(Google_Service_Blogger_CommentBlog $blog) 
  1844. $this->blog = $blog; 
  1845. public function getBlog() 
  1846. return $this->blog; 
  1847. public function setContent($content) 
  1848. $this->content = $content; 
  1849. public function getContent() 
  1850. return $this->content; 
  1851. public function setId($id) 
  1852. $this->id = $id; 
  1853. public function getId() 
  1854. return $this->id; 
  1855. public function setInReplyTo(Google_Service_Blogger_CommentInReplyTo $inReplyTo) 
  1856. $this->inReplyTo = $inReplyTo; 
  1857. public function getInReplyTo() 
  1858. return $this->inReplyTo; 
  1859. public function setKind($kind) 
  1860. $this->kind = $kind; 
  1861. public function getKind() 
  1862. return $this->kind; 
  1863. public function setPost(Google_Service_Blogger_CommentPost $post) 
  1864. $this->post = $post; 
  1865. public function getPost() 
  1866. return $this->post; 
  1867. public function setPublished($published) 
  1868. $this->published = $published; 
  1869. public function getPublished() 
  1870. return $this->published; 
  1871. public function setSelfLink($selfLink) 
  1872. $this->selfLink = $selfLink; 
  1873. public function getSelfLink() 
  1874. return $this->selfLink; 
  1875. public function setStatus($status) 
  1876. $this->status = $status; 
  1877. public function getStatus() 
  1878. return $this->status; 
  1879. public function setUpdated($updated) 
  1880. $this->updated = $updated; 
  1881. public function getUpdated() 
  1882. return $this->updated; 
  1883.  
  1884. class Google_Service_Blogger_CommentAuthor extends Google_Model 
  1885. protected $internal_gapi_mappings = array( 
  1886. ); 
  1887. public $displayName; 
  1888. public $id; 
  1889. protected $imageType = 'Google_Service_Blogger_CommentAuthorImage'; 
  1890. protected $imageDataType = ''; 
  1891. public $url; 
  1892.  
  1893.  
  1894. public function setDisplayName($displayName) 
  1895. $this->displayName = $displayName; 
  1896. public function getDisplayName() 
  1897. return $this->displayName; 
  1898. public function setId($id) 
  1899. $this->id = $id; 
  1900. public function getId() 
  1901. return $this->id; 
  1902. public function setImage(Google_Service_Blogger_CommentAuthorImage $image) 
  1903. $this->image = $image; 
  1904. public function getImage() 
  1905. return $this->image; 
  1906. public function setUrl($url) 
  1907. $this->url = $url; 
  1908. public function getUrl() 
  1909. return $this->url; 
  1910.  
  1911. class Google_Service_Blogger_CommentAuthorImage extends Google_Model 
  1912. protected $internal_gapi_mappings = array( 
  1913. ); 
  1914. public $url; 
  1915.  
  1916.  
  1917. public function setUrl($url) 
  1918. $this->url = $url; 
  1919. public function getUrl() 
  1920. return $this->url; 
  1921.  
  1922. class Google_Service_Blogger_CommentBlog extends Google_Model 
  1923. protected $internal_gapi_mappings = array( 
  1924. ); 
  1925. public $id; 
  1926.  
  1927.  
  1928. public function setId($id) 
  1929. $this->id = $id; 
  1930. public function getId() 
  1931. return $this->id; 
  1932.  
  1933. class Google_Service_Blogger_CommentInReplyTo extends Google_Model 
  1934. protected $internal_gapi_mappings = array( 
  1935. ); 
  1936. public $id; 
  1937.  
  1938.  
  1939. public function setId($id) 
  1940. $this->id = $id; 
  1941. public function getId() 
  1942. return $this->id; 
  1943.  
  1944. class Google_Service_Blogger_CommentList extends Google_Collection 
  1945. protected $collection_key = 'items'; 
  1946. protected $internal_gapi_mappings = array( 
  1947. ); 
  1948. protected $itemsType = 'Google_Service_Blogger_Comment'; 
  1949. protected $itemsDataType = 'array'; 
  1950. public $kind; 
  1951. public $nextPageToken; 
  1952. public $prevPageToken; 
  1953.  
  1954.  
  1955. public function setItems($items) 
  1956. $this->items = $items; 
  1957. public function getItems() 
  1958. return $this->items; 
  1959. public function setKind($kind) 
  1960. $this->kind = $kind; 
  1961. public function getKind() 
  1962. return $this->kind; 
  1963. public function setNextPageToken($nextPageToken) 
  1964. $this->nextPageToken = $nextPageToken; 
  1965. public function getNextPageToken() 
  1966. return $this->nextPageToken; 
  1967. public function setPrevPageToken($prevPageToken) 
  1968. $this->prevPageToken = $prevPageToken; 
  1969. public function getPrevPageToken() 
  1970. return $this->prevPageToken; 
  1971.  
  1972. class Google_Service_Blogger_CommentPost extends Google_Model 
  1973. protected $internal_gapi_mappings = array( 
  1974. ); 
  1975. public $id; 
  1976.  
  1977.  
  1978. public function setId($id) 
  1979. $this->id = $id; 
  1980. public function getId() 
  1981. return $this->id; 
  1982.  
  1983. class Google_Service_Blogger_Page extends Google_Model 
  1984. protected $internal_gapi_mappings = array( 
  1985. ); 
  1986. protected $authorType = 'Google_Service_Blogger_PageAuthor'; 
  1987. protected $authorDataType = ''; 
  1988. protected $blogType = 'Google_Service_Blogger_PageBlog'; 
  1989. protected $blogDataType = ''; 
  1990. public $content; 
  1991. public $etag; 
  1992. public $id; 
  1993. public $kind; 
  1994. public $published; 
  1995. public $selfLink; 
  1996. public $status; 
  1997. public $title; 
  1998. public $updated; 
  1999. public $url; 
  2000.  
  2001.  
  2002. public function setAuthor(Google_Service_Blogger_PageAuthor $author) 
  2003. $this->author = $author; 
  2004. public function getAuthor() 
  2005. return $this->author; 
  2006. public function setBlog(Google_Service_Blogger_PageBlog $blog) 
  2007. $this->blog = $blog; 
  2008. public function getBlog() 
  2009. return $this->blog; 
  2010. public function setContent($content) 
  2011. $this->content = $content; 
  2012. public function getContent() 
  2013. return $this->content; 
  2014. public function setEtag($etag) 
  2015. $this->etag = $etag; 
  2016. public function getEtag() 
  2017. return $this->etag; 
  2018. public function setId($id) 
  2019. $this->id = $id; 
  2020. public function getId() 
  2021. return $this->id; 
  2022. public function setKind($kind) 
  2023. $this->kind = $kind; 
  2024. public function getKind() 
  2025. return $this->kind; 
  2026. public function setPublished($published) 
  2027. $this->published = $published; 
  2028. public function getPublished() 
  2029. return $this->published; 
  2030. public function setSelfLink($selfLink) 
  2031. $this->selfLink = $selfLink; 
  2032. public function getSelfLink() 
  2033. return $this->selfLink; 
  2034. public function setStatus($status) 
  2035. $this->status = $status; 
  2036. public function getStatus() 
  2037. return $this->status; 
  2038. public function setTitle($title) 
  2039. $this->title = $title; 
  2040. public function getTitle() 
  2041. return $this->title; 
  2042. public function setUpdated($updated) 
  2043. $this->updated = $updated; 
  2044. public function getUpdated() 
  2045. return $this->updated; 
  2046. public function setUrl($url) 
  2047. $this->url = $url; 
  2048. public function getUrl() 
  2049. return $this->url; 
  2050.  
  2051. class Google_Service_Blogger_PageAuthor extends Google_Model 
  2052. protected $internal_gapi_mappings = array( 
  2053. ); 
  2054. public $displayName; 
  2055. public $id; 
  2056. protected $imageType = 'Google_Service_Blogger_PageAuthorImage'; 
  2057. protected $imageDataType = ''; 
  2058. public $url; 
  2059.  
  2060.  
  2061. public function setDisplayName($displayName) 
  2062. $this->displayName = $displayName; 
  2063. public function getDisplayName() 
  2064. return $this->displayName; 
  2065. public function setId($id) 
  2066. $this->id = $id; 
  2067. public function getId() 
  2068. return $this->id; 
  2069. public function setImage(Google_Service_Blogger_PageAuthorImage $image) 
  2070. $this->image = $image; 
  2071. public function getImage() 
  2072. return $this->image; 
  2073. public function setUrl($url) 
  2074. $this->url = $url; 
  2075. public function getUrl() 
  2076. return $this->url; 
  2077.  
  2078. class Google_Service_Blogger_PageAuthorImage extends Google_Model 
  2079. protected $internal_gapi_mappings = array( 
  2080. ); 
  2081. public $url; 
  2082.  
  2083.  
  2084. public function setUrl($url) 
  2085. $this->url = $url; 
  2086. public function getUrl() 
  2087. return $this->url; 
  2088.  
  2089. class Google_Service_Blogger_PageBlog extends Google_Model 
  2090. protected $internal_gapi_mappings = array( 
  2091. ); 
  2092. public $id; 
  2093.  
  2094.  
  2095. public function setId($id) 
  2096. $this->id = $id; 
  2097. public function getId() 
  2098. return $this->id; 
  2099.  
  2100. class Google_Service_Blogger_PageList extends Google_Collection 
  2101. protected $collection_key = 'items'; 
  2102. protected $internal_gapi_mappings = array( 
  2103. ); 
  2104. protected $itemsType = 'Google_Service_Blogger_Page'; 
  2105. protected $itemsDataType = 'array'; 
  2106. public $kind; 
  2107. public $nextPageToken; 
  2108.  
  2109.  
  2110. public function setItems($items) 
  2111. $this->items = $items; 
  2112. public function getItems() 
  2113. return $this->items; 
  2114. public function setKind($kind) 
  2115. $this->kind = $kind; 
  2116. public function getKind() 
  2117. return $this->kind; 
  2118. public function setNextPageToken($nextPageToken) 
  2119. $this->nextPageToken = $nextPageToken; 
  2120. public function getNextPageToken() 
  2121. return $this->nextPageToken; 
  2122.  
  2123. class Google_Service_Blogger_Pageviews extends Google_Collection 
  2124. protected $collection_key = 'counts'; 
  2125. protected $internal_gapi_mappings = array( 
  2126. ); 
  2127. public $blogId; 
  2128. protected $countsType = 'Google_Service_Blogger_PageviewsCounts'; 
  2129. protected $countsDataType = 'array'; 
  2130. public $kind; 
  2131.  
  2132.  
  2133. public function setBlogId($blogId) 
  2134. $this->blogId = $blogId; 
  2135. public function getBlogId() 
  2136. return $this->blogId; 
  2137. public function setCounts($counts) 
  2138. $this->counts = $counts; 
  2139. public function getCounts() 
  2140. return $this->counts; 
  2141. public function setKind($kind) 
  2142. $this->kind = $kind; 
  2143. public function getKind() 
  2144. return $this->kind; 
  2145.  
  2146. class Google_Service_Blogger_PageviewsCounts extends Google_Model 
  2147. protected $internal_gapi_mappings = array( 
  2148. ); 
  2149. public $count; 
  2150. public $timeRange; 
  2151.  
  2152.  
  2153. public function setCount($count) 
  2154. $this->count = $count; 
  2155. public function getCount() 
  2156. return $this->count; 
  2157. public function setTimeRange($timeRange) 
  2158. $this->timeRange = $timeRange; 
  2159. public function getTimeRange() 
  2160. return $this->timeRange; 
  2161.  
  2162. class Google_Service_Blogger_Post extends Google_Collection 
  2163. protected $collection_key = 'labels'; 
  2164. protected $internal_gapi_mappings = array( 
  2165. ); 
  2166. protected $authorType = 'Google_Service_Blogger_PostAuthor'; 
  2167. protected $authorDataType = ''; 
  2168. protected $blogType = 'Google_Service_Blogger_PostBlog'; 
  2169. protected $blogDataType = ''; 
  2170. public $content; 
  2171. public $customMetaData; 
  2172. public $etag; 
  2173. public $id; 
  2174. protected $imagesType = 'Google_Service_Blogger_PostImages'; 
  2175. protected $imagesDataType = 'array'; 
  2176. public $kind; 
  2177. public $labels; 
  2178. protected $locationType = 'Google_Service_Blogger_PostLocation'; 
  2179. protected $locationDataType = ''; 
  2180. public $published; 
  2181. public $readerComments; 
  2182. protected $repliesType = 'Google_Service_Blogger_PostReplies'; 
  2183. protected $repliesDataType = ''; 
  2184. public $selfLink; 
  2185. public $status; 
  2186. public $title; 
  2187. public $titleLink; 
  2188. public $updated; 
  2189. public $url; 
  2190.  
  2191.  
  2192. public function setAuthor(Google_Service_Blogger_PostAuthor $author) 
  2193. $this->author = $author; 
  2194. public function getAuthor() 
  2195. return $this->author; 
  2196. public function setBlog(Google_Service_Blogger_PostBlog $blog) 
  2197. $this->blog = $blog; 
  2198. public function getBlog() 
  2199. return $this->blog; 
  2200. public function setContent($content) 
  2201. $this->content = $content; 
  2202. public function getContent() 
  2203. return $this->content; 
  2204. public function setCustomMetaData($customMetaData) 
  2205. $this->customMetaData = $customMetaData; 
  2206. public function getCustomMetaData() 
  2207. return $this->customMetaData; 
  2208. public function setEtag($etag) 
  2209. $this->etag = $etag; 
  2210. public function getEtag() 
  2211. return $this->etag; 
  2212. public function setId($id) 
  2213. $this->id = $id; 
  2214. public function getId() 
  2215. return $this->id; 
  2216. public function setImages($images) 
  2217. $this->images = $images; 
  2218. public function getImages() 
  2219. return $this->images; 
  2220. public function setKind($kind) 
  2221. $this->kind = $kind; 
  2222. public function getKind() 
  2223. return $this->kind; 
  2224. public function setLabels($labels) 
  2225. $this->labels = $labels; 
  2226. public function getLabels() 
  2227. return $this->labels; 
  2228. public function setLocation(Google_Service_Blogger_PostLocation $location) 
  2229. $this->location = $location; 
  2230. public function getLocation() 
  2231. return $this->location; 
  2232. public function setPublished($published) 
  2233. $this->published = $published; 
  2234. public function getPublished() 
  2235. return $this->published; 
  2236. public function setReaderComments($readerComments) 
  2237. $this->readerComments = $readerComments; 
  2238. public function getReaderComments() 
  2239. return $this->readerComments; 
  2240. public function setReplies(Google_Service_Blogger_PostReplies $replies) 
  2241. $this->replies = $replies; 
  2242. public function getReplies() 
  2243. return $this->replies; 
  2244. public function setSelfLink($selfLink) 
  2245. $this->selfLink = $selfLink; 
  2246. public function getSelfLink() 
  2247. return $this->selfLink; 
  2248. public function setStatus($status) 
  2249. $this->status = $status; 
  2250. public function getStatus() 
  2251. return $this->status; 
  2252. public function setTitle($title) 
  2253. $this->title = $title; 
  2254. public function getTitle() 
  2255. return $this->title; 
  2256. public function setTitleLink($titleLink) 
  2257. $this->titleLink = $titleLink; 
  2258. public function getTitleLink() 
  2259. return $this->titleLink; 
  2260. public function setUpdated($updated) 
  2261. $this->updated = $updated; 
  2262. public function getUpdated() 
  2263. return $this->updated; 
  2264. public function setUrl($url) 
  2265. $this->url = $url; 
  2266. public function getUrl() 
  2267. return $this->url; 
  2268.  
  2269. class Google_Service_Blogger_PostAuthor extends Google_Model 
  2270. protected $internal_gapi_mappings = array( 
  2271. ); 
  2272. public $displayName; 
  2273. public $id; 
  2274. protected $imageType = 'Google_Service_Blogger_PostAuthorImage'; 
  2275. protected $imageDataType = ''; 
  2276. public $url; 
  2277.  
  2278.  
  2279. public function setDisplayName($displayName) 
  2280. $this->displayName = $displayName; 
  2281. public function getDisplayName() 
  2282. return $this->displayName; 
  2283. public function setId($id) 
  2284. $this->id = $id; 
  2285. public function getId() 
  2286. return $this->id; 
  2287. public function setImage(Google_Service_Blogger_PostAuthorImage $image) 
  2288. $this->image = $image; 
  2289. public function getImage() 
  2290. return $this->image; 
  2291. public function setUrl($url) 
  2292. $this->url = $url; 
  2293. public function getUrl() 
  2294. return $this->url; 
  2295.  
  2296. class Google_Service_Blogger_PostAuthorImage extends Google_Model 
  2297. protected $internal_gapi_mappings = array( 
  2298. ); 
  2299. public $url; 
  2300.  
  2301.  
  2302. public function setUrl($url) 
  2303. $this->url = $url; 
  2304. public function getUrl() 
  2305. return $this->url; 
  2306.  
  2307. class Google_Service_Blogger_PostBlog extends Google_Model 
  2308. protected $internal_gapi_mappings = array( 
  2309. ); 
  2310. public $id; 
  2311.  
  2312.  
  2313. public function setId($id) 
  2314. $this->id = $id; 
  2315. public function getId() 
  2316. return $this->id; 
  2317.  
  2318. class Google_Service_Blogger_PostImages extends Google_Model 
  2319. protected $internal_gapi_mappings = array( 
  2320. ); 
  2321. public $url; 
  2322.  
  2323.  
  2324. public function setUrl($url) 
  2325. $this->url = $url; 
  2326. public function getUrl() 
  2327. return $this->url; 
  2328.  
  2329. class Google_Service_Blogger_PostList extends Google_Collection 
  2330. protected $collection_key = 'items'; 
  2331. protected $internal_gapi_mappings = array( 
  2332. ); 
  2333. protected $itemsType = 'Google_Service_Blogger_Post'; 
  2334. protected $itemsDataType = 'array'; 
  2335. public $kind; 
  2336. public $nextPageToken; 
  2337.  
  2338.  
  2339. public function setItems($items) 
  2340. $this->items = $items; 
  2341. public function getItems() 
  2342. return $this->items; 
  2343. public function setKind($kind) 
  2344. $this->kind = $kind; 
  2345. public function getKind() 
  2346. return $this->kind; 
  2347. public function setNextPageToken($nextPageToken) 
  2348. $this->nextPageToken = $nextPageToken; 
  2349. public function getNextPageToken() 
  2350. return $this->nextPageToken; 
  2351.  
  2352. class Google_Service_Blogger_PostLocation extends Google_Model 
  2353. protected $internal_gapi_mappings = array( 
  2354. ); 
  2355. public $lat; 
  2356. public $lng; 
  2357. public $name; 
  2358. public $span; 
  2359.  
  2360.  
  2361. public function setLat($lat) 
  2362. $this->lat = $lat; 
  2363. public function getLat() 
  2364. return $this->lat; 
  2365. public function setLng($lng) 
  2366. $this->lng = $lng; 
  2367. public function getLng() 
  2368. return $this->lng; 
  2369. public function setName($name) 
  2370. $this->name = $name; 
  2371. public function getName() 
  2372. return $this->name; 
  2373. public function setSpan($span) 
  2374. $this->span = $span; 
  2375. public function getSpan() 
  2376. return $this->span; 
  2377.  
  2378. class Google_Service_Blogger_PostPerUserInfo extends Google_Model 
  2379. protected $internal_gapi_mappings = array( 
  2380. ); 
  2381. public $blogId; 
  2382. public $hasEditAccess; 
  2383. public $kind; 
  2384. public $postId; 
  2385. public $userId; 
  2386.  
  2387.  
  2388. public function setBlogId($blogId) 
  2389. $this->blogId = $blogId; 
  2390. public function getBlogId() 
  2391. return $this->blogId; 
  2392. public function setHasEditAccess($hasEditAccess) 
  2393. $this->hasEditAccess = $hasEditAccess; 
  2394. public function getHasEditAccess() 
  2395. return $this->hasEditAccess; 
  2396. public function setKind($kind) 
  2397. $this->kind = $kind; 
  2398. public function getKind() 
  2399. return $this->kind; 
  2400. public function setPostId($postId) 
  2401. $this->postId = $postId; 
  2402. public function getPostId() 
  2403. return $this->postId; 
  2404. public function setUserId($userId) 
  2405. $this->userId = $userId; 
  2406. public function getUserId() 
  2407. return $this->userId; 
  2408.  
  2409. class Google_Service_Blogger_PostReplies extends Google_Collection 
  2410. protected $collection_key = 'items'; 
  2411. protected $internal_gapi_mappings = array( 
  2412. ); 
  2413. protected $itemsType = 'Google_Service_Blogger_Comment'; 
  2414. protected $itemsDataType = 'array'; 
  2415. public $selfLink; 
  2416. public $totalItems; 
  2417.  
  2418.  
  2419. public function setItems($items) 
  2420. $this->items = $items; 
  2421. public function getItems() 
  2422. return $this->items; 
  2423. public function setSelfLink($selfLink) 
  2424. $this->selfLink = $selfLink; 
  2425. public function getSelfLink() 
  2426. return $this->selfLink; 
  2427. public function setTotalItems($totalItems) 
  2428. $this->totalItems = $totalItems; 
  2429. public function getTotalItems() 
  2430. return $this->totalItems; 
  2431.  
  2432. class Google_Service_Blogger_PostUserInfo extends Google_Model 
  2433. protected $internal_gapi_mappings = array( 
  2434. "postUserInfo" => "post_user_info",  
  2435. ); 
  2436. public $kind; 
  2437. protected $postType = 'Google_Service_Blogger_Post'; 
  2438. protected $postDataType = ''; 
  2439. protected $postUserInfoType = 'Google_Service_Blogger_PostPerUserInfo'; 
  2440. protected $postUserInfoDataType = ''; 
  2441.  
  2442.  
  2443. public function setKind($kind) 
  2444. $this->kind = $kind; 
  2445. public function getKind() 
  2446. return $this->kind; 
  2447. public function setPost(Google_Service_Blogger_Post $post) 
  2448. $this->post = $post; 
  2449. public function getPost() 
  2450. return $this->post; 
  2451. public function setPostUserInfo(Google_Service_Blogger_PostPerUserInfo $postUserInfo) 
  2452. $this->postUserInfo = $postUserInfo; 
  2453. public function getPostUserInfo() 
  2454. return $this->postUserInfo; 
  2455.  
  2456. class Google_Service_Blogger_PostUserInfosList extends Google_Collection 
  2457. protected $collection_key = 'items'; 
  2458. protected $internal_gapi_mappings = array( 
  2459. ); 
  2460. protected $itemsType = 'Google_Service_Blogger_PostUserInfo'; 
  2461. protected $itemsDataType = 'array'; 
  2462. public $kind; 
  2463. public $nextPageToken; 
  2464.  
  2465.  
  2466. public function setItems($items) 
  2467. $this->items = $items; 
  2468. public function getItems() 
  2469. return $this->items; 
  2470. public function setKind($kind) 
  2471. $this->kind = $kind; 
  2472. public function getKind() 
  2473. return $this->kind; 
  2474. public function setNextPageToken($nextPageToken) 
  2475. $this->nextPageToken = $nextPageToken; 
  2476. public function getNextPageToken() 
  2477. return $this->nextPageToken; 
  2478.  
  2479. class Google_Service_Blogger_User extends Google_Model 
  2480. protected $internal_gapi_mappings = array( 
  2481. ); 
  2482. public $about; 
  2483. protected $blogsType = 'Google_Service_Blogger_UserBlogs'; 
  2484. protected $blogsDataType = ''; 
  2485. public $created; 
  2486. public $displayName; 
  2487. public $id; 
  2488. public $kind; 
  2489. protected $localeType = 'Google_Service_Blogger_UserLocale'; 
  2490. protected $localeDataType = ''; 
  2491. public $selfLink; 
  2492. public $url; 
  2493.  
  2494.  
  2495. public function setAbout($about) 
  2496. $this->about = $about; 
  2497. public function getAbout() 
  2498. return $this->about; 
  2499. public function setBlogs(Google_Service_Blogger_UserBlogs $blogs) 
  2500. $this->blogs = $blogs; 
  2501. public function getBlogs() 
  2502. return $this->blogs; 
  2503. public function setCreated($created) 
  2504. $this->created = $created; 
  2505. public function getCreated() 
  2506. return $this->created; 
  2507. public function setDisplayName($displayName) 
  2508. $this->displayName = $displayName; 
  2509. public function getDisplayName() 
  2510. return $this->displayName; 
  2511. public function setId($id) 
  2512. $this->id = $id; 
  2513. public function getId() 
  2514. return $this->id; 
  2515. public function setKind($kind) 
  2516. $this->kind = $kind; 
  2517. public function getKind() 
  2518. return $this->kind; 
  2519. public function setLocale(Google_Service_Blogger_UserLocale $locale) 
  2520. $this->locale = $locale; 
  2521. public function getLocale() 
  2522. return $this->locale; 
  2523. public function setSelfLink($selfLink) 
  2524. $this->selfLink = $selfLink; 
  2525. public function getSelfLink() 
  2526. return $this->selfLink; 
  2527. public function setUrl($url) 
  2528. $this->url = $url; 
  2529. public function getUrl() 
  2530. return $this->url; 
  2531.  
  2532. class Google_Service_Blogger_UserBlogs extends Google_Model 
  2533. protected $internal_gapi_mappings = array( 
  2534. ); 
  2535. public $selfLink; 
  2536.  
  2537.  
  2538. public function setSelfLink($selfLink) 
  2539. $this->selfLink = $selfLink; 
  2540. public function getSelfLink() 
  2541. return $this->selfLink; 
  2542.  
  2543. class Google_Service_Blogger_UserLocale extends Google_Model 
  2544. protected $internal_gapi_mappings = array( 
  2545. ); 
  2546. public $country; 
  2547. public $language; 
  2548. public $variant; 
  2549.  
  2550.  
  2551. public function setCountry($country) 
  2552. $this->country = $country; 
  2553. public function getCountry() 
  2554. return $this->country; 
  2555. public function setLanguage($language) 
  2556. $this->language = $language; 
  2557. public function getLanguage() 
  2558. return $this->language; 
  2559. public function setVariant($variant) 
  2560. $this->variant = $variant; 
  2561. public function getVariant() 
  2562. return $this->variant; 
.