PageRenderTime 52ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 1ms

/lib/google/src/Google/Service/Books.php

http://github.com/moodle/moodle
PHP | 7132 lines | 5941 code | 347 blank | 844 comment | 0 complexity | 0aa5083e72c69fea801ef95759898e0e MD5 | raw file
Possible License(s): MIT, AGPL-3.0, MPL-2.0-no-copyleft-exception, LGPL-3.0, GPL-3.0, Apache-2.0, LGPL-2.1, BSD-3-Clause

Large files files are truncated, but you can click here to view the full file

  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. * Service definition for Books (v1).
  19. *
  20. * <p>
  21. * Lets you search for books and manage your Google Books library.</p>
  22. *
  23. * <p>
  24. * For more information about this service, see the API
  25. * <a href="https://developers.google.com/books/docs/v1/getting_started" target="_blank">Documentation</a>
  26. * </p>
  27. *
  28. * @author Google, Inc.
  29. */
  30. class Google_Service_Books extends Google_Service
  31. {
  32. /** Manage your books. */
  33. const BOOKS =
  34. "https://www.googleapis.com/auth/books";
  35. public $bookshelves;
  36. public $bookshelves_volumes;
  37. public $cloudloading;
  38. public $dictionary;
  39. public $layers;
  40. public $layers_annotationData;
  41. public $layers_volumeAnnotations;
  42. public $myconfig;
  43. public $mylibrary_annotations;
  44. public $mylibrary_bookshelves;
  45. public $mylibrary_bookshelves_volumes;
  46. public $mylibrary_readingpositions;
  47. public $notification;
  48. public $onboarding;
  49. public $personalizedstream;
  50. public $promooffer;
  51. public $volumes;
  52. public $volumes_associated;
  53. public $volumes_mybooks;
  54. public $volumes_recommended;
  55. public $volumes_useruploaded;
  56. /**
  57. * Constructs the internal representation of the Books service.
  58. *
  59. * @param Google_Client $client
  60. */
  61. public function __construct(Google_Client $client)
  62. {
  63. parent::__construct($client);
  64. $this->rootUrl = 'https://www.googleapis.com/';
  65. $this->servicePath = 'books/v1/';
  66. $this->version = 'v1';
  67. $this->serviceName = 'books';
  68. $this->bookshelves = new Google_Service_Books_Bookshelves_Resource(
  69. $this,
  70. $this->serviceName,
  71. 'bookshelves',
  72. array(
  73. 'methods' => array(
  74. 'get' => array(
  75. 'path' => 'users/{userId}/bookshelves/{shelf}',
  76. 'httpMethod' => 'GET',
  77. 'parameters' => array(
  78. 'userId' => array(
  79. 'location' => 'path',
  80. 'type' => 'string',
  81. 'required' => true,
  82. ),
  83. 'shelf' => array(
  84. 'location' => 'path',
  85. 'type' => 'string',
  86. 'required' => true,
  87. ),
  88. 'source' => array(
  89. 'location' => 'query',
  90. 'type' => 'string',
  91. ),
  92. ),
  93. ),'list' => array(
  94. 'path' => 'users/{userId}/bookshelves',
  95. 'httpMethod' => 'GET',
  96. 'parameters' => array(
  97. 'userId' => array(
  98. 'location' => 'path',
  99. 'type' => 'string',
  100. 'required' => true,
  101. ),
  102. 'source' => array(
  103. 'location' => 'query',
  104. 'type' => 'string',
  105. ),
  106. ),
  107. ),
  108. )
  109. )
  110. );
  111. $this->bookshelves_volumes = new Google_Service_Books_BookshelvesVolumes_Resource(
  112. $this,
  113. $this->serviceName,
  114. 'volumes',
  115. array(
  116. 'methods' => array(
  117. 'list' => array(
  118. 'path' => 'users/{userId}/bookshelves/{shelf}/volumes',
  119. 'httpMethod' => 'GET',
  120. 'parameters' => array(
  121. 'userId' => array(
  122. 'location' => 'path',
  123. 'type' => 'string',
  124. 'required' => true,
  125. ),
  126. 'shelf' => array(
  127. 'location' => 'path',
  128. 'type' => 'string',
  129. 'required' => true,
  130. ),
  131. 'showPreorders' => array(
  132. 'location' => 'query',
  133. 'type' => 'boolean',
  134. ),
  135. 'maxResults' => array(
  136. 'location' => 'query',
  137. 'type' => 'integer',
  138. ),
  139. 'source' => array(
  140. 'location' => 'query',
  141. 'type' => 'string',
  142. ),
  143. 'startIndex' => array(
  144. 'location' => 'query',
  145. 'type' => 'integer',
  146. ),
  147. ),
  148. ),
  149. )
  150. )
  151. );
  152. $this->cloudloading = new Google_Service_Books_Cloudloading_Resource(
  153. $this,
  154. $this->serviceName,
  155. 'cloudloading',
  156. array(
  157. 'methods' => array(
  158. 'addBook' => array(
  159. 'path' => 'cloudloading/addBook',
  160. 'httpMethod' => 'POST',
  161. 'parameters' => array(
  162. 'upload_client_token' => array(
  163. 'location' => 'query',
  164. 'type' => 'string',
  165. ),
  166. 'drive_document_id' => array(
  167. 'location' => 'query',
  168. 'type' => 'string',
  169. ),
  170. 'mime_type' => array(
  171. 'location' => 'query',
  172. 'type' => 'string',
  173. ),
  174. 'name' => array(
  175. 'location' => 'query',
  176. 'type' => 'string',
  177. ),
  178. ),
  179. ),'deleteBook' => array(
  180. 'path' => 'cloudloading/deleteBook',
  181. 'httpMethod' => 'POST',
  182. 'parameters' => array(
  183. 'volumeId' => array(
  184. 'location' => 'query',
  185. 'type' => 'string',
  186. 'required' => true,
  187. ),
  188. ),
  189. ),'updateBook' => array(
  190. 'path' => 'cloudloading/updateBook',
  191. 'httpMethod' => 'POST',
  192. 'parameters' => array(),
  193. ),
  194. )
  195. )
  196. );
  197. $this->dictionary = new Google_Service_Books_Dictionary_Resource(
  198. $this,
  199. $this->serviceName,
  200. 'dictionary',
  201. array(
  202. 'methods' => array(
  203. 'listOfflineMetadata' => array(
  204. 'path' => 'dictionary/listOfflineMetadata',
  205. 'httpMethod' => 'GET',
  206. 'parameters' => array(
  207. 'cpksver' => array(
  208. 'location' => 'query',
  209. 'type' => 'string',
  210. 'required' => true,
  211. ),
  212. ),
  213. ),
  214. )
  215. )
  216. );
  217. $this->layers = new Google_Service_Books_Layers_Resource(
  218. $this,
  219. $this->serviceName,
  220. 'layers',
  221. array(
  222. 'methods' => array(
  223. 'get' => array(
  224. 'path' => 'volumes/{volumeId}/layersummary/{summaryId}',
  225. 'httpMethod' => 'GET',
  226. 'parameters' => array(
  227. 'volumeId' => array(
  228. 'location' => 'path',
  229. 'type' => 'string',
  230. 'required' => true,
  231. ),
  232. 'summaryId' => array(
  233. 'location' => 'path',
  234. 'type' => 'string',
  235. 'required' => true,
  236. ),
  237. 'source' => array(
  238. 'location' => 'query',
  239. 'type' => 'string',
  240. ),
  241. 'contentVersion' => array(
  242. 'location' => 'query',
  243. 'type' => 'string',
  244. ),
  245. ),
  246. ),'list' => array(
  247. 'path' => 'volumes/{volumeId}/layersummary',
  248. 'httpMethod' => 'GET',
  249. 'parameters' => array(
  250. 'volumeId' => array(
  251. 'location' => 'path',
  252. 'type' => 'string',
  253. 'required' => true,
  254. ),
  255. 'pageToken' => array(
  256. 'location' => 'query',
  257. 'type' => 'string',
  258. ),
  259. 'contentVersion' => array(
  260. 'location' => 'query',
  261. 'type' => 'string',
  262. ),
  263. 'maxResults' => array(
  264. 'location' => 'query',
  265. 'type' => 'integer',
  266. ),
  267. 'source' => array(
  268. 'location' => 'query',
  269. 'type' => 'string',
  270. ),
  271. ),
  272. ),
  273. )
  274. )
  275. );
  276. $this->layers_annotationData = new Google_Service_Books_LayersAnnotationData_Resource(
  277. $this,
  278. $this->serviceName,
  279. 'annotationData',
  280. array(
  281. 'methods' => array(
  282. 'get' => array(
  283. 'path' => 'volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}',
  284. 'httpMethod' => 'GET',
  285. 'parameters' => array(
  286. 'volumeId' => array(
  287. 'location' => 'path',
  288. 'type' => 'string',
  289. 'required' => true,
  290. ),
  291. 'layerId' => array(
  292. 'location' => 'path',
  293. 'type' => 'string',
  294. 'required' => true,
  295. ),
  296. 'annotationDataId' => array(
  297. 'location' => 'path',
  298. 'type' => 'string',
  299. 'required' => true,
  300. ),
  301. 'contentVersion' => array(
  302. 'location' => 'query',
  303. 'type' => 'string',
  304. 'required' => true,
  305. ),
  306. 'scale' => array(
  307. 'location' => 'query',
  308. 'type' => 'integer',
  309. ),
  310. 'source' => array(
  311. 'location' => 'query',
  312. 'type' => 'string',
  313. ),
  314. 'allowWebDefinitions' => array(
  315. 'location' => 'query',
  316. 'type' => 'boolean',
  317. ),
  318. 'h' => array(
  319. 'location' => 'query',
  320. 'type' => 'integer',
  321. ),
  322. 'locale' => array(
  323. 'location' => 'query',
  324. 'type' => 'string',
  325. ),
  326. 'w' => array(
  327. 'location' => 'query',
  328. 'type' => 'integer',
  329. ),
  330. ),
  331. ),'list' => array(
  332. 'path' => 'volumes/{volumeId}/layers/{layerId}/data',
  333. 'httpMethod' => 'GET',
  334. 'parameters' => array(
  335. 'volumeId' => array(
  336. 'location' => 'path',
  337. 'type' => 'string',
  338. 'required' => true,
  339. ),
  340. 'layerId' => array(
  341. 'location' => 'path',
  342. 'type' => 'string',
  343. 'required' => true,
  344. ),
  345. 'contentVersion' => array(
  346. 'location' => 'query',
  347. 'type' => 'string',
  348. 'required' => true,
  349. ),
  350. 'scale' => array(
  351. 'location' => 'query',
  352. 'type' => 'integer',
  353. ),
  354. 'source' => array(
  355. 'location' => 'query',
  356. 'type' => 'string',
  357. ),
  358. 'locale' => array(
  359. 'location' => 'query',
  360. 'type' => 'string',
  361. ),
  362. 'h' => array(
  363. 'location' => 'query',
  364. 'type' => 'integer',
  365. ),
  366. 'updatedMax' => array(
  367. 'location' => 'query',
  368. 'type' => 'string',
  369. ),
  370. 'maxResults' => array(
  371. 'location' => 'query',
  372. 'type' => 'integer',
  373. ),
  374. 'annotationDataId' => array(
  375. 'location' => 'query',
  376. 'type' => 'string',
  377. 'repeated' => true,
  378. ),
  379. 'pageToken' => array(
  380. 'location' => 'query',
  381. 'type' => 'string',
  382. ),
  383. 'w' => array(
  384. 'location' => 'query',
  385. 'type' => 'integer',
  386. ),
  387. 'updatedMin' => array(
  388. 'location' => 'query',
  389. 'type' => 'string',
  390. ),
  391. ),
  392. ),
  393. )
  394. )
  395. );
  396. $this->layers_volumeAnnotations = new Google_Service_Books_LayersVolumeAnnotations_Resource(
  397. $this,
  398. $this->serviceName,
  399. 'volumeAnnotations',
  400. array(
  401. 'methods' => array(
  402. 'get' => array(
  403. 'path' => 'volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}',
  404. 'httpMethod' => 'GET',
  405. 'parameters' => array(
  406. 'volumeId' => array(
  407. 'location' => 'path',
  408. 'type' => 'string',
  409. 'required' => true,
  410. ),
  411. 'layerId' => array(
  412. 'location' => 'path',
  413. 'type' => 'string',
  414. 'required' => true,
  415. ),
  416. 'annotationId' => array(
  417. 'location' => 'path',
  418. 'type' => 'string',
  419. 'required' => true,
  420. ),
  421. 'locale' => array(
  422. 'location' => 'query',
  423. 'type' => 'string',
  424. ),
  425. 'source' => array(
  426. 'location' => 'query',
  427. 'type' => 'string',
  428. ),
  429. ),
  430. ),'list' => array(
  431. 'path' => 'volumes/{volumeId}/layers/{layerId}',
  432. 'httpMethod' => 'GET',
  433. 'parameters' => array(
  434. 'volumeId' => array(
  435. 'location' => 'path',
  436. 'type' => 'string',
  437. 'required' => true,
  438. ),
  439. 'layerId' => array(
  440. 'location' => 'path',
  441. 'type' => 'string',
  442. 'required' => true,
  443. ),
  444. 'contentVersion' => array(
  445. 'location' => 'query',
  446. 'type' => 'string',
  447. 'required' => true,
  448. ),
  449. 'showDeleted' => array(
  450. 'location' => 'query',
  451. 'type' => 'boolean',
  452. ),
  453. 'volumeAnnotationsVersion' => array(
  454. 'location' => 'query',
  455. 'type' => 'string',
  456. ),
  457. 'endPosition' => array(
  458. 'location' => 'query',
  459. 'type' => 'string',
  460. ),
  461. 'endOffset' => array(
  462. 'location' => 'query',
  463. 'type' => 'string',
  464. ),
  465. 'locale' => array(
  466. 'location' => 'query',
  467. 'type' => 'string',
  468. ),
  469. 'updatedMin' => array(
  470. 'location' => 'query',
  471. 'type' => 'string',
  472. ),
  473. 'updatedMax' => array(
  474. 'location' => 'query',
  475. 'type' => 'string',
  476. ),
  477. 'maxResults' => array(
  478. 'location' => 'query',
  479. 'type' => 'integer',
  480. ),
  481. 'pageToken' => array(
  482. 'location' => 'query',
  483. 'type' => 'string',
  484. ),
  485. 'source' => array(
  486. 'location' => 'query',
  487. 'type' => 'string',
  488. ),
  489. 'startOffset' => array(
  490. 'location' => 'query',
  491. 'type' => 'string',
  492. ),
  493. 'startPosition' => array(
  494. 'location' => 'query',
  495. 'type' => 'string',
  496. ),
  497. ),
  498. ),
  499. )
  500. )
  501. );
  502. $this->myconfig = new Google_Service_Books_Myconfig_Resource(
  503. $this,
  504. $this->serviceName,
  505. 'myconfig',
  506. array(
  507. 'methods' => array(
  508. 'getUserSettings' => array(
  509. 'path' => 'myconfig/getUserSettings',
  510. 'httpMethod' => 'GET',
  511. 'parameters' => array(),
  512. ),'releaseDownloadAccess' => array(
  513. 'path' => 'myconfig/releaseDownloadAccess',
  514. 'httpMethod' => 'POST',
  515. 'parameters' => array(
  516. 'volumeIds' => array(
  517. 'location' => 'query',
  518. 'type' => 'string',
  519. 'repeated' => true,
  520. 'required' => true,
  521. ),
  522. 'cpksver' => array(
  523. 'location' => 'query',
  524. 'type' => 'string',
  525. 'required' => true,
  526. ),
  527. 'locale' => array(
  528. 'location' => 'query',
  529. 'type' => 'string',
  530. ),
  531. 'source' => array(
  532. 'location' => 'query',
  533. 'type' => 'string',
  534. ),
  535. ),
  536. ),'requestAccess' => array(
  537. 'path' => 'myconfig/requestAccess',
  538. 'httpMethod' => 'POST',
  539. 'parameters' => array(
  540. 'source' => array(
  541. 'location' => 'query',
  542. 'type' => 'string',
  543. 'required' => true,
  544. ),
  545. 'volumeId' => array(
  546. 'location' => 'query',
  547. 'type' => 'string',
  548. 'required' => true,
  549. ),
  550. 'nonce' => array(
  551. 'location' => 'query',
  552. 'type' => 'string',
  553. 'required' => true,
  554. ),
  555. 'cpksver' => array(
  556. 'location' => 'query',
  557. 'type' => 'string',
  558. 'required' => true,
  559. ),
  560. 'licenseTypes' => array(
  561. 'location' => 'query',
  562. 'type' => 'string',
  563. ),
  564. 'locale' => array(
  565. 'location' => 'query',
  566. 'type' => 'string',
  567. ),
  568. ),
  569. ),'syncVolumeLicenses' => array(
  570. 'path' => 'myconfig/syncVolumeLicenses',
  571. 'httpMethod' => 'POST',
  572. 'parameters' => array(
  573. 'source' => array(
  574. 'location' => 'query',
  575. 'type' => 'string',
  576. 'required' => true,
  577. ),
  578. 'nonce' => array(
  579. 'location' => 'query',
  580. 'type' => 'string',
  581. 'required' => true,
  582. ),
  583. 'cpksver' => array(
  584. 'location' => 'query',
  585. 'type' => 'string',
  586. 'required' => true,
  587. ),
  588. 'features' => array(
  589. 'location' => 'query',
  590. 'type' => 'string',
  591. 'repeated' => true,
  592. ),
  593. 'locale' => array(
  594. 'location' => 'query',
  595. 'type' => 'string',
  596. ),
  597. 'showPreorders' => array(
  598. 'location' => 'query',
  599. 'type' => 'boolean',
  600. ),
  601. 'volumeIds' => array(
  602. 'location' => 'query',
  603. 'type' => 'string',
  604. 'repeated' => true,
  605. ),
  606. ),
  607. ),'updateUserSettings' => array(
  608. 'path' => 'myconfig/updateUserSettings',
  609. 'httpMethod' => 'POST',
  610. 'parameters' => array(),
  611. ),
  612. )
  613. )
  614. );
  615. $this->mylibrary_annotations = new Google_Service_Books_MylibraryAnnotations_Resource(
  616. $this,
  617. $this->serviceName,
  618. 'annotations',
  619. array(
  620. 'methods' => array(
  621. 'delete' => array(
  622. 'path' => 'mylibrary/annotations/{annotationId}',
  623. 'httpMethod' => 'DELETE',
  624. 'parameters' => array(
  625. 'annotationId' => array(
  626. 'location' => 'path',
  627. 'type' => 'string',
  628. 'required' => true,
  629. ),
  630. 'source' => array(
  631. 'location' => 'query',
  632. 'type' => 'string',
  633. ),
  634. ),
  635. ),'insert' => array(
  636. 'path' => 'mylibrary/annotations',
  637. 'httpMethod' => 'POST',
  638. 'parameters' => array(
  639. 'country' => array(
  640. 'location' => 'query',
  641. 'type' => 'string',
  642. ),
  643. 'showOnlySummaryInResponse' => array(
  644. 'location' => 'query',
  645. 'type' => 'boolean',
  646. ),
  647. 'source' => array(
  648. 'location' => 'query',
  649. 'type' => 'string',
  650. ),
  651. ),
  652. ),'list' => array(
  653. 'path' => 'mylibrary/annotations',
  654. 'httpMethod' => 'GET',
  655. 'parameters' => array(
  656. 'showDeleted' => array(
  657. 'location' => 'query',
  658. 'type' => 'boolean',
  659. ),
  660. 'updatedMin' => array(
  661. 'location' => 'query',
  662. 'type' => 'string',
  663. ),
  664. 'layerIds' => array(
  665. 'location' => 'query',
  666. 'type' => 'string',
  667. 'repeated' => true,
  668. ),
  669. 'volumeId' => array(
  670. 'location' => 'query',
  671. 'type' => 'string',
  672. ),
  673. 'maxResults' => array(
  674. 'location' => 'query',
  675. 'type' => 'integer',
  676. ),
  677. 'pageToken' => array(
  678. 'location' => 'query',
  679. 'type' => 'string',
  680. ),
  681. 'updatedMax' => array(
  682. 'location' => 'query',
  683. 'type' => 'string',
  684. ),
  685. 'contentVersion' => array(
  686. 'location' => 'query',
  687. 'type' => 'string',
  688. ),
  689. 'source' => array(
  690. 'location' => 'query',
  691. 'type' => 'string',
  692. ),
  693. 'layerId' => array(
  694. 'location' => 'query',
  695. 'type' => 'string',
  696. ),
  697. ),
  698. ),'summary' => array(
  699. 'path' => 'mylibrary/annotations/summary',
  700. 'httpMethod' => 'POST',
  701. 'parameters' => array(
  702. 'layerIds' => array(
  703. 'location' => 'query',
  704. 'type' => 'string',
  705. 'repeated' => true,
  706. 'required' => true,
  707. ),
  708. 'volumeId' => array(
  709. 'location' => 'query',
  710. 'type' => 'string',
  711. 'required' => true,
  712. ),
  713. ),
  714. ),'update' => array(
  715. 'path' => 'mylibrary/annotations/{annotationId}',
  716. 'httpMethod' => 'PUT',
  717. 'parameters' => array(
  718. 'annotationId' => array(
  719. 'location' => 'path',
  720. 'type' => 'string',
  721. 'required' => true,
  722. ),
  723. 'source' => array(
  724. 'location' => 'query',
  725. 'type' => 'string',
  726. ),
  727. ),
  728. ),
  729. )
  730. )
  731. );
  732. $this->mylibrary_bookshelves = new Google_Service_Books_MylibraryBookshelves_Resource(
  733. $this,
  734. $this->serviceName,
  735. 'bookshelves',
  736. array(
  737. 'methods' => array(
  738. 'addVolume' => array(
  739. 'path' => 'mylibrary/bookshelves/{shelf}/addVolume',
  740. 'httpMethod' => 'POST',
  741. 'parameters' => array(
  742. 'shelf' => array(
  743. 'location' => 'path',
  744. 'type' => 'string',
  745. 'required' => true,
  746. ),
  747. 'volumeId' => array(
  748. 'location' => 'query',
  749. 'type' => 'string',
  750. 'required' => true,
  751. ),
  752. 'reason' => array(
  753. 'location' => 'query',
  754. 'type' => 'string',
  755. ),
  756. 'source' => array(
  757. 'location' => 'query',
  758. 'type' => 'string',
  759. ),
  760. ),
  761. ),'clearVolumes' => array(
  762. 'path' => 'mylibrary/bookshelves/{shelf}/clearVolumes',
  763. 'httpMethod' => 'POST',
  764. 'parameters' => array(
  765. 'shelf' => array(
  766. 'location' => 'path',
  767. 'type' => 'string',
  768. 'required' => true,
  769. ),
  770. 'source' => array(
  771. 'location' => 'query',
  772. 'type' => 'string',
  773. ),
  774. ),
  775. ),'get' => array(
  776. 'path' => 'mylibrary/bookshelves/{shelf}',
  777. 'httpMethod' => 'GET',
  778. 'parameters' => array(
  779. 'shelf' => array(
  780. 'location' => 'path',
  781. 'type' => 'string',
  782. 'required' => true,
  783. ),
  784. 'source' => array(
  785. 'location' => 'query',
  786. 'type' => 'string',
  787. ),
  788. ),
  789. ),'list' => array(
  790. 'path' => 'mylibrary/bookshelves',
  791. 'httpMethod' => 'GET',
  792. 'parameters' => array(
  793. 'source' => array(
  794. 'location' => 'query',
  795. 'type' => 'string',
  796. ),
  797. ),
  798. ),'moveVolume' => array(
  799. 'path' => 'mylibrary/bookshelves/{shelf}/moveVolume',
  800. 'httpMethod' => 'POST',
  801. 'parameters' => array(
  802. 'shelf' => array(
  803. 'location' => 'path',
  804. 'type' => 'string',
  805. 'required' => true,
  806. ),
  807. 'volumeId' => array(
  808. 'location' => 'query',
  809. 'type' => 'string',
  810. 'required' => true,
  811. ),
  812. 'volumePosition' => array(
  813. 'location' => 'query',
  814. 'type' => 'integer',
  815. 'required' => true,
  816. ),
  817. 'source' => array(
  818. 'location' => 'query',
  819. 'type' => 'string',
  820. ),
  821. ),
  822. ),'removeVolume' => array(
  823. 'path' => 'mylibrary/bookshelves/{shelf}/removeVolume',
  824. 'httpMethod' => 'POST',
  825. 'parameters' => array(
  826. 'shelf' => array(
  827. 'location' => 'path',
  828. 'type' => 'string',
  829. 'required' => true,
  830. ),
  831. 'volumeId' => array(
  832. 'location' => 'query',
  833. 'type' => 'string',
  834. 'required' => true,
  835. ),
  836. 'reason' => array(
  837. 'location' => 'query',
  838. 'type' => 'string',
  839. ),
  840. 'source' => array(
  841. 'location' => 'query',
  842. 'type' => 'string',
  843. ),
  844. ),
  845. ),
  846. )
  847. )
  848. );
  849. $this->mylibrary_bookshelves_volumes = new Google_Service_Books_MylibraryBookshelvesVolumes_Resource(
  850. $this,
  851. $this->serviceName,
  852. 'volumes',
  853. array(
  854. 'methods' => array(
  855. 'list' => array(
  856. 'path' => 'mylibrary/bookshelves/{shelf}/volumes',
  857. 'httpMethod' => 'GET',
  858. 'parameters' => array(
  859. 'shelf' => array(
  860. 'location' => 'path',
  861. 'type' => 'string',
  862. 'required' => true,
  863. ),
  864. 'projection' => array(
  865. 'location' => 'query',
  866. 'type' => 'string',
  867. ),
  868. 'country' => array(
  869. 'location' => 'query',
  870. 'type' => 'string',
  871. ),
  872. 'showPreorders' => array(
  873. 'location' => 'query',
  874. 'type' => 'boolean',
  875. ),
  876. 'maxResults' => array(
  877. 'location' => 'query',
  878. 'type' => 'integer',
  879. ),
  880. 'q' => array(
  881. 'location' => 'query',
  882. 'type' => 'string',
  883. ),
  884. 'source' => array(
  885. 'location' => 'query',
  886. 'type' => 'string',
  887. ),
  888. 'startIndex' => array(
  889. 'location' => 'query',
  890. 'type' => 'integer',
  891. ),
  892. ),
  893. ),
  894. )
  895. )
  896. );
  897. $this->mylibrary_readingpositions = new Google_Service_Books_MylibraryReadingpositions_Resource(
  898. $this,
  899. $this->serviceName,
  900. 'readingpositions',
  901. array(
  902. 'methods' => array(
  903. 'get' => array(
  904. 'path' => 'mylibrary/readingpositions/{volumeId}',
  905. 'httpMethod' => 'GET',
  906. 'parameters' => array(
  907. 'volumeId' => array(
  908. 'location' => 'path',
  909. 'type' => 'string',
  910. 'required' => true,
  911. ),
  912. 'source' => array(
  913. 'location' => 'query',
  914. 'type' => 'string',
  915. ),
  916. 'contentVersion' => array(
  917. 'location' => 'query',
  918. 'type' => 'string',
  919. ),
  920. ),
  921. ),'setPosition' => array(
  922. 'path' => 'mylibrary/readingpositions/{volumeId}/setPosition',
  923. 'httpMethod' => 'POST',
  924. 'parameters' => array(
  925. 'volumeId' => array(
  926. 'location' => 'path',
  927. 'type' => 'string',
  928. 'required' => true,
  929. ),
  930. 'timestamp' => array(
  931. 'location' => 'query',
  932. 'type' => 'string',
  933. 'required' => true,
  934. ),
  935. 'position' => array(
  936. 'location' => 'query',
  937. 'type' => 'string',
  938. 'required' => true,
  939. ),
  940. 'deviceCookie' => array(
  941. 'location' => 'query',
  942. 'type' => 'string',
  943. ),
  944. 'source' => array(
  945. 'location' => 'query',
  946. 'type' => 'string',
  947. ),
  948. 'contentVersion' => array(
  949. 'location' => 'query',
  950. 'type' => 'string',
  951. ),
  952. 'action' => array(
  953. 'location' => 'query',
  954. 'type' => 'string',
  955. ),
  956. ),
  957. ),
  958. )
  959. )
  960. );
  961. $this->notification = new Google_Service_Books_Notification_Resource(
  962. $this,
  963. $this->serviceName,
  964. 'notification',
  965. array(
  966. 'methods' => array(
  967. 'get' => array(
  968. 'path' => 'notification/get',
  969. 'httpMethod' => 'GET',
  970. 'parameters' => array(
  971. 'notification_id' => array(
  972. 'location' => 'query',
  973. 'type' => 'string',
  974. 'required' => true,
  975. ),
  976. 'locale' => array(
  977. 'location' => 'query',
  978. 'type' => 'string',
  979. ),
  980. 'source' => array(
  981. 'location' => 'query',
  982. 'type' => 'string',
  983. ),
  984. ),
  985. ),
  986. )
  987. )
  988. );
  989. $this->onboarding = new Google_Service_Books_Onboarding_Resource(
  990. $this,
  991. $this->serviceName,
  992. 'onboarding',
  993. array(
  994. 'methods' => array(
  995. 'listCategories' => array(
  996. 'path' => 'onboarding/listCategories',
  997. 'httpMethod' => 'GET',
  998. 'parameters' => array(
  999. 'locale' => array(
  1000. 'location' => 'query',
  1001. 'type' => 'string',
  1002. ),
  1003. ),
  1004. ),'listCategoryVolumes' => array(
  1005. 'path' => 'onboarding/listCategoryVolumes',
  1006. 'httpMethod' => 'GET',
  1007. 'parameters' => array(
  1008. 'locale' => array(
  1009. 'location' => 'query',
  1010. 'type' => 'string',
  1011. ),
  1012. 'pageToken' => array(
  1013. 'location' => 'query',
  1014. 'type' => 'string',
  1015. ),
  1016. 'maxAllowedMaturityRating' => array(
  1017. 'location' => 'query',
  1018. 'type' => 'string',
  1019. ),
  1020. 'categoryId' => array(
  1021. 'location' => 'query',
  1022. 'type' => 'string',
  1023. 'repeated' => true,
  1024. ),
  1025. 'pageSize' => array(
  1026. 'location' => 'query',
  1027. 'type' => 'integer',
  1028. ),
  1029. ),
  1030. ),
  1031. )
  1032. )
  1033. );
  1034. $this->personalizedstream = new Google_Service_Books_Personalizedstream_Resource(
  1035. $this,
  1036. $this->serviceName,
  1037. 'personalizedstream',
  1038. array(
  1039. 'methods' => array(
  1040. 'get' => array(
  1041. 'path' => 'personalizedstream/get',
  1042. 'httpMethod' => 'GET',
  1043. 'parameters' => array(
  1044. 'locale' => array(
  1045. 'location' => 'query',
  1046. 'type' => 'string',
  1047. ),
  1048. 'source' => array(
  1049. 'location' => 'query',
  1050. 'type' => 'string',
  1051. ),
  1052. 'maxAllowedMaturityRating' => array(
  1053. 'location' => 'query',
  1054. 'type' => 'string',
  1055. ),
  1056. ),
  1057. ),
  1058. )
  1059. )
  1060. );
  1061. $this->promooffer = new Google_Service_Books_Promooffer_Resource(
  1062. $this,
  1063. $this->serviceName,
  1064. 'promooffer',
  1065. array(
  1066. 'methods' => array(
  1067. 'accept' => array(
  1068. 'path' => 'promooffer/accept',
  1069. 'httpMethod' => 'POST',
  1070. 'parameters' => array(
  1071. 'product' => array(
  1072. 'location' => 'query',
  1073. 'type' => 'string',
  1074. ),
  1075. 'volumeId' => array(
  1076. 'location' => 'query',
  1077. 'type' => 'string',
  1078. ),
  1079. 'offerId' => array(
  1080. 'location' => 'query',
  1081. 'type' => 'string',
  1082. ),
  1083. 'androidId' => array(
  1084. 'location' => 'query',
  1085. 'type' => 'string',
  1086. ),
  1087. 'device' => array(
  1088. 'location' => 'query',
  1089. 'type' => 'string',
  1090. ),
  1091. 'model' => array(
  1092. 'location' => 'query',
  1093. 'type' => 'string',
  1094. ),
  1095. 'serial' => array(
  1096. 'location' => 'query',
  1097. 'type' => 'string',
  1098. ),
  1099. 'manufacturer' => array(
  1100. 'location' => 'query',
  1101. 'type' => 'string',
  1102. ),
  1103. ),
  1104. ),'dismiss' => array(
  1105. 'path' => 'promooffer/dismiss',
  1106. 'httpMethod' => 'POST',
  1107. 'parameters' => array(
  1108. 'product' => array(
  1109. 'location' => 'query',
  1110. 'type' => 'string',
  1111. ),
  1112. 'offerId' => array(
  1113. 'location' => 'query',
  1114. 'type' => 'string',
  1115. ),
  1116. 'androidId' => array(
  1117. 'location' => 'query',
  1118. 'type' => 'string',
  1119. ),
  1120. 'device' => array(
  1121. 'location' => 'query',
  1122. 'type' => 'string',
  1123. ),
  1124. 'model' => array(
  1125. 'location' => 'query',
  1126. 'type' => 'string',
  1127. ),
  1128. 'serial' => array(
  1129. 'location' => 'query',
  1130. 'type' => 'string',
  1131. ),
  1132. 'manufacturer' => array(
  1133. 'location' => 'query',
  1134. 'type' => 'string',
  1135. ),
  1136. ),
  1137. ),'get' => array(
  1138. 'path' => 'promooffer/get',
  1139. 'httpMethod' => 'GET',
  1140. 'parameters' => array(
  1141. 'product' => array(
  1142. 'location' => 'query',
  1143. 'type' => 'string',
  1144. ),
  1145. 'androidId' => array(
  1146. 'location' => 'query',
  1147. 'type' => 'string',
  1148. ),
  1149. 'device' => array(
  1150. 'location' => 'query',
  1151. 'type' => 'string',
  1152. ),
  1153. 'model' => array(
  1154. 'location' => 'query',
  1155. 'type' => 'string',
  1156. ),
  1157. 'serial' => array(
  1158. 'location' => 'query',
  1159. 'type' => 'string',
  1160. ),
  1161. 'manufacturer' => array(
  1162. 'location' => 'query',
  1163. 'type' => 'string',
  1164. ),
  1165. ),
  1166. ),
  1167. )
  1168. )
  1169. );
  1170. $this->volumes = new Google_Service_Books_Volumes_Resource(
  1171. $this,
  1172. $this->serviceName,
  1173. 'volumes',
  1174. array(
  1175. 'methods' => array(
  1176. 'get' => array(
  1177. 'path' => 'volumes/{volumeId}',
  1178. 'httpMethod' => 'GET',
  1179. 'parameters' => array(
  1180. 'volumeId' => array(
  1181. 'location' => 'path',
  1182. 'type' => 'string',
  1183. 'required' => true,
  1184. ),
  1185. 'user_library_consistent_read' => array(
  1186. 'location' => 'query',
  1187. 'type' => 'boolean',
  1188. ),
  1189. 'projection' => array(
  1190. 'location' => 'query',
  1191. 'type' => 'string',
  1192. ),
  1193. 'country' => array(
  1194. 'location' => 'query',
  1195. 'type' => 'string',
  1196. ),
  1197. 'source' => array(
  1198. 'location' => 'query',
  1199. 'type' => 'string',
  1200. ),
  1201. 'partner' => array(
  1202. 'location' => 'query',
  1203. 'type' => 'string',
  1204. ),
  1205. ),
  1206. ),'list' => array(
  1207. 'path' => 'volumes',
  1208. 'httpMethod' => 'GET',
  1209. 'parameters' => array(
  1210. 'q' => array(
  1211. 'location' => 'query',
  1212. 'type' => 'string',
  1213. 'required' => true,
  1214. ),
  1215. 'orderBy' => array(
  1216. 'location' => 'query',
  1217. 'type' => 'string',
  1218. ),
  1219. 'projection' => array(
  1220. 'location' => 'query',
  1221. 'type' => 'string',
  1222. ),
  1223. 'libraryRestrict' => array(
  1224. 'location' => 'query',
  1225. 'type' => 'string',
  1226. ),
  1227. 'langRestrict' => array(
  1228. 'location' => 'query',
  1229. 'type' => 'string',
  1230. ),
  1231. 'showPreorders' => array(
  1232. 'location' => 'query',
  1233. 'type' => 'boolean',
  1234. ),
  1235. 'printType' => array(
  1236. 'location' => 'query',
  1237. 'type' => 'string',
  1238. ),
  1239. 'maxResults' => array(
  1240. 'location' => 'query',
  1241. 'type' => 'integer',
  1242. ),
  1243. 'filter' => array(
  1244. 'location' => 'query',
  1245. 'type' => 'string',
  1246. ),
  1247. 'source' => array(
  1248. 'location' => 'query',
  1249. 'type' => 'string',
  1250. ),
  1251. 'startIndex' => array(
  1252. 'location' => 'query',
  1253. 'type' => 'integer',
  1254. ),
  1255. 'download' => array(
  1256. 'location' => 'query',
  1257. 'type' => 'string',
  1258. ),
  1259. 'partner' => array(
  1260. 'location' => 'query',
  1261. 'type' => 'string',
  1262. ),
  1263. ),
  1264. ),
  1265. )
  1266. )
  1267. );
  1268. $this->volumes_associated = new Google_Service_Books_VolumesAssociated_Resource(
  1269. $this,
  1270. $this->serviceName,
  1271. 'associated',
  1272. array(
  1273. 'methods' => array(
  1274. 'list' => array(
  1275. 'path' => 'volumes/{volumeId}/associated',
  1276. 'httpMethod' => 'GET',
  1277. 'parameters' => array(
  1278. 'volumeId' => array(
  1279. 'location' => 'path',
  1280. 'type' => 'string',
  1281. 'required' => true,
  1282. ),
  1283. 'locale' => array(
  1284. 'location' => 'query',
  1285. 'type' => 'string',
  1286. ),
  1287. 'source' => array(
  1288. 'location' => 'query',
  1289. 'type' => 'string',
  1290. ),
  1291. 'maxAllowedMaturityRating' => array(
  1292. 'location' => 'query',
  1293. 'type' => 'string',
  1294. ),
  1295. 'association' => array(
  1296. 'location' => 'query',
  1297. 'type' => 'string',
  1298. ),
  1299. ),
  1300. ),
  1301. )
  1302. )
  1303. );
  1304. $this->volumes_mybooks = new Google_Service_Books_VolumesMybooks_Resource(
  1305. $this,
  1306. $this->serviceName,
  1307. 'mybooks',
  1308. array(
  1309. 'methods' => array(
  1310. 'list' => array(
  1311. 'path' => 'volumes/mybooks',
  1312. 'httpMethod' => 'GET',
  1313. 'parameters' => array(
  1314. 'locale' => array(
  1315. 'location' => 'query',
  1316. 'type' => 'string',
  1317. ),
  1318. 'startIndex' => array(
  1319. 'location' => 'query',
  1320. 'type' => 'integer',
  1321. ),
  1322. 'maxResults' => array(
  1323. 'location' => 'query',
  1324. 'type' => 'integer',
  1325. ),
  1326. 'source' => array(
  1327. 'location' => 'query',
  1328. 'type' => 'string',
  1329. ),
  1330. 'acquireMethod' => array(
  1331. 'location' => 'query',
  1332. 'type' => 'string',
  1333. 'repeated' => true,
  1334. ),
  1335. 'processingState' => array(
  1336. 'location' => 'query',
  1337. 'type' => 'string',
  1338. 'repeated' => true,
  1339. ),
  1340. ),
  1341. ),
  1342. )
  1343. )
  1344. );
  1345. $this->volumes_recommended = new Google_Service_Books_VolumesRecommended_Resource(
  1346. $this,
  1347. $this->serviceName,
  1348. 'recommended',
  1349. array(
  1350. 'methods' => array(
  1351. 'list' => array(
  1352. 'path' => 'volumes/recommended',
  1353. 'httpMethod' => 'GET',
  1354. 'parameters' => array(
  1355. 'locale' => array(
  1356. 'location' => 'query',
  1357. 'type' => 'string',
  1358. ),
  1359. 'source' => array(
  1360. 'location' => 'query',
  1361. 'type' => 'string',
  1362. ),
  1363. 'maxAllowedMaturityRating' => array(
  1364. 'location' => 'query',
  1365. 'type' => 'string',
  1366. ),
  1367. ),
  1368. ),'rate' => array(
  1369. 'path' => 'volumes/recommended/rate',
  1370. 'httpMethod' => 'POST',
  1371. 'parameters' => array(
  1372. 'rating' => array(
  1373. 'location' => 'query',
  1374. 'type' => 'string',
  1375. 'required' => true,
  1376. ),
  1377. 'volumeId' => array(
  1378. 'location' => 'query',
  1379. 'type' => 'string',
  1380. 'required' => true,
  1381. ),
  1382. 'locale' => array(
  1383. 'location' => 'query',
  1384. 'type' => 'string',
  1385. ),
  1386. 'source' => array(
  1387. 'location' => 'query',
  1388. 'type' => 'string',
  1389. ),
  1390. ),
  1391. ),
  1392. )
  1393. )
  1394. );
  1395. $this->volumes_useruploaded = new Google_Service_Books_VolumesUseruploaded_Resource(
  1396. $this,
  1397. $this->serviceName,
  1398. 'useruploaded',
  1399. array(
  1400. 'methods' => array(
  1401. 'list' => array(
  1402. 'path' => 'volumes/useruploaded',
  1403. 'httpMethod' => 'GET',
  1404. 'parameters' => array(
  1405. 'locale' => array(
  1406. 'location' => 'query',
  1407. 'type' => 'string',
  1408. ),
  1409. 'volumeId' => array(
  1410. 'location' => 'query',
  1411. 'type' => 'string',
  1412. 'repeated' => true,
  1413. ),
  1414. 'maxResults' => array(
  1415. 'location' => 'query',
  1416. 'type' => 'integer',
  1417. ),
  1418. 'source' => array(
  1419. 'location' => 'query',
  1420. 'type' => 'string',
  1421. ),
  1422. 'startIndex' => array(
  1423. 'location' => 'query',
  1424. 'type' => 'integer',
  1425. ),
  1426. 'processingState' => array(
  1427. 'location' => 'query',
  1428. 'type' => 'string',
  1429. 'repeated' => true,
  1430. ),
  1431. ),
  1432. ),
  1433. )
  1434. )
  1435. );
  1436. }
  1437. }
  1438. /**
  1439. * The "bookshelves" collection of methods.
  1440. * Typical usage is:
  1441. * <code>
  1442. * $booksService = new Google_Service_Books(...);
  1443. * $bookshelves = $booksService->bookshelves;
  1444. * </code>
  1445. */
  1446. class Google_Service_Books_Bookshelves_Resource extends Google_Service_Resource
  1447. {
  1448. /**
  1449. * Retrieves metadata for a specific bookshelf for the specified user.
  1450. * (bookshelves.get)
  1451. *
  1452. * @param string $userId ID of user for whom to retrieve bookshelves.
  1453. * @param string $shelf ID of bookshelf to retrieve.
  1454. * @param array $optParams Optional parameters.
  1455. *
  1456. * @opt_param string source String to identify the originator of this request.
  1457. * @return Google_Service_Books_Bookshelf
  1458. */
  1459. public function get($userId, $shelf, $optParams = array())
  1460. {
  1461. $params = array('userId' => $userId, 'shelf' => $shelf);
  1462. $params = array_merge($params, $optParams);
  1463. return $this->call('get', array($params), "Google_Service_Books_Bookshelf");
  1464. }
  1465. /**
  1466. * Retrieves a list of public bookshelves for the specified user.
  1467. * (bookshelves.listBookshelves)
  1468. *
  1469. * @param string $userId ID of user for whom to retrieve bookshelves.
  1470. * @param array $optParams Optional parameters.
  1471. *
  1472. * @opt_param string source String to identify the originator of this request.
  1473. * @return Google_Service_Books_Bookshelves
  1474. */
  1475. public function listBookshelves($userId, $optParams = array())
  1476. {
  1477. $params = array('userId' => $userId);
  1478. $params = array_merge($params, $optParams);
  1479. return $this->call('list', array($params), "Google_Service_Books_Bookshelves");
  1480. }
  1481. }
  1482. /**
  1483. * The "volumes" collection of methods.
  1484. * Typical usage is:
  1485. * <code>
  1486. * $booksService = new Google_Service_Books(...);
  1487. * $volumes = $booksService->volumes;
  1488. * </code>
  1489. */
  1490. class Google_Service_Books_BookshelvesVolumes_Resource extends Google_Service_Resource
  1491. {
  1492. /**
  1493. * Retrieves volumes in a specific bookshelf for the specified user.
  1494. * (volumes.listBookshelvesVolumes)
  1495. *
  1496. * @param string $userId ID of user for whom to retrieve bookshelf volumes.
  1497. * @param string $shelf ID of bookshelf to retrieve volumes.
  1498. * @param array $optParams Optional parameters.
  1499. *
  1500. * @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults
  1501. * to false.
  1502. * @opt_param string maxResults Maximum number of results to return
  1503. * @opt_param string source String to identify the originator of this request.
  1504. * @opt_param string startIndex Index of the first element to return (starts at
  1505. * 0)
  1506. * @return Google_Service_Books_Volumes
  1507. */
  1508. public function listBookshelvesVolumes($userId, $shelf, $optParams = array())
  1509. {
  1510. $params = array('userId' => $userId, 'shelf' => $shelf);
  1511. $params = array_merge($params, $optParams);
  1512. return $this->call('list', array($params),

Large files files are truncated, but you can click here to view the full file