PageRenderTime 46ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 1ms

/lib/google/contrib/Google_BooksService.php

https://bitbucket.org/synergylearning/campusconnect
PHP | 2793 lines | 2223 code | 83 blank | 487 comment | 46 complexity | 1d3ea79436b063f95f1b1995217ff105 MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, LGPL-3.0, GPL-3.0, LGPL-2.1, Apache-2.0, BSD-3-Clause, AGPL-3.0

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

  1. <?php
  2. /*
  3. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  4. * use this file except in compliance with the License. You may obtain a copy of
  5. * the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  11. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  12. * License for the specific language governing permissions and limitations under
  13. * the License.
  14. */
  15. /**
  16. * The "layers" collection of methods.
  17. * Typical usage is:
  18. * <code>
  19. * $booksService = new Google_BooksService(...);
  20. * $layers = $booksService->layers;
  21. * </code>
  22. */
  23. class Google_LayersServiceResource extends Google_ServiceResource {
  24. /**
  25. * List the layer summaries for a volume. (layers.list)
  26. *
  27. * @param string $volumeId The volume to retrieve layers for.
  28. * @param array $optParams Optional parameters.
  29. *
  30. * @opt_param string pageToken The value of the nextToken from the previous page.
  31. * @opt_param string contentVersion The content version for the requested volume.
  32. * @opt_param string maxResults Maximum number of results to return
  33. * @opt_param string source String to identify the originator of this request.
  34. * @return Google_Layersummaries
  35. */
  36. public function listLayers($volumeId, $optParams = array()) {
  37. $params = array('volumeId' => $volumeId);
  38. $params = array_merge($params, $optParams);
  39. $data = $this->__call('list', array($params));
  40. if ($this->useObjects()) {
  41. return new Google_Layersummaries($data);
  42. } else {
  43. return $data;
  44. }
  45. }
  46. /**
  47. * Gets the layer summary for a volume. (layers.get)
  48. *
  49. * @param string $volumeId The volume to retrieve layers for.
  50. * @param string $summaryId The ID for the layer to get the summary for.
  51. * @param array $optParams Optional parameters.
  52. *
  53. * @opt_param string source String to identify the originator of this request.
  54. * @opt_param string contentVersion The content version for the requested volume.
  55. * @return Google_Layersummary
  56. */
  57. public function get($volumeId, $summaryId, $optParams = array()) {
  58. $params = array('volumeId' => $volumeId, 'summaryId' => $summaryId);
  59. $params = array_merge($params, $optParams);
  60. $data = $this->__call('get', array($params));
  61. if ($this->useObjects()) {
  62. return new Google_Layersummary($data);
  63. } else {
  64. return $data;
  65. }
  66. }
  67. }
  68. /**
  69. * The "annotationData" collection of methods.
  70. * Typical usage is:
  71. * <code>
  72. * $booksService = new Google_BooksService(...);
  73. * $annotationData = $booksService->annotationData;
  74. * </code>
  75. */
  76. class Google_LayersAnnotationDataServiceResource extends Google_ServiceResource {
  77. /**
  78. * Gets the annotation data for a volume and layer. (annotationData.list)
  79. *
  80. * @param string $volumeId The volume to retrieve annotation data for.
  81. * @param string $layerId The ID for the layer to get the annotation data.
  82. * @param string $contentVersion The content version for the requested volume.
  83. * @param array $optParams Optional parameters.
  84. *
  85. * @opt_param int scale The requested scale for the image.
  86. * @opt_param string source String to identify the originator of this request.
  87. * @opt_param string locale The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
  88. * @opt_param int h The requested pixel height for any images. If height is provided width must also be provided.
  89. * @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
  90. * @opt_param string maxResults Maximum number of results to return
  91. * @opt_param string annotationDataId The list of Annotation Data Ids to retrieve. Pagination is ignored if this is set.
  92. * @opt_param string pageToken The value of the nextToken from the previous page.
  93. * @opt_param int w The requested pixel width for any images. If width is provided height must also be provided.
  94. * @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
  95. * @return Google_Annotationsdata
  96. */
  97. public function listLayersAnnotationData($volumeId, $layerId, $contentVersion, $optParams = array()) {
  98. $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'contentVersion' => $contentVersion);
  99. $params = array_merge($params, $optParams);
  100. $data = $this->__call('list', array($params));
  101. if ($this->useObjects()) {
  102. return new Google_Annotationsdata($data);
  103. } else {
  104. return $data;
  105. }
  106. }
  107. /**
  108. * Gets the annotation data. (annotationData.get)
  109. *
  110. * @param string $volumeId The volume to retrieve annotations for.
  111. * @param string $layerId The ID for the layer to get the annotations.
  112. * @param string $annotationDataId The ID of the annotation data to retrieve.
  113. * @param string $contentVersion The content version for the volume you are trying to retrieve.
  114. * @param array $optParams Optional parameters.
  115. *
  116. * @opt_param int scale The requested scale for the image.
  117. * @opt_param string locale The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
  118. * @opt_param int h The requested pixel height for any images. If height is provided width must also be provided.
  119. * @opt_param string source String to identify the originator of this request.
  120. * @opt_param int w The requested pixel width for any images. If width is provided height must also be provided.
  121. * @return Google_Annotationdata
  122. */
  123. public function get($volumeId, $layerId, $annotationDataId, $contentVersion, $optParams = array()) {
  124. $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'annotationDataId' => $annotationDataId, 'contentVersion' => $contentVersion);
  125. $params = array_merge($params, $optParams);
  126. $data = $this->__call('get', array($params));
  127. if ($this->useObjects()) {
  128. return new Google_Annotationdata($data);
  129. } else {
  130. return $data;
  131. }
  132. }
  133. }
  134. /**
  135. * The "volumeAnnotations" collection of methods.
  136. * Typical usage is:
  137. * <code>
  138. * $booksService = new Google_BooksService(...);
  139. * $volumeAnnotations = $booksService->volumeAnnotations;
  140. * </code>
  141. */
  142. class Google_LayersVolumeAnnotationsServiceResource extends Google_ServiceResource {
  143. /**
  144. * Gets the volume annotations for a volume and layer. (volumeAnnotations.list)
  145. *
  146. * @param string $volumeId The volume to retrieve annotations for.
  147. * @param string $layerId The ID for the layer to get the annotations.
  148. * @param string $contentVersion The content version for the requested volume.
  149. * @param array $optParams Optional parameters.
  150. *
  151. * @opt_param bool showDeleted Set to true to return deleted annotations. updatedMin must be in the request to use this. Defaults to false.
  152. * @opt_param string endPosition The end position to end retrieving data from.
  153. * @opt_param string endOffset The end offset to end retrieving data from.
  154. * @opt_param string locale The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
  155. * @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
  156. * @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
  157. * @opt_param string maxResults Maximum number of results to return
  158. * @opt_param string pageToken The value of the nextToken from the previous page.
  159. * @opt_param string source String to identify the originator of this request.
  160. * @opt_param string startOffset The start offset to start retrieving data from.
  161. * @opt_param string startPosition The start position to start retrieving data from.
  162. * @return Google_Volumeannotations
  163. */
  164. public function listLayersVolumeAnnotations($volumeId, $layerId, $contentVersion, $optParams = array()) {
  165. $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'contentVersion' => $contentVersion);
  166. $params = array_merge($params, $optParams);
  167. $data = $this->__call('list', array($params));
  168. if ($this->useObjects()) {
  169. return new Google_Volumeannotations($data);
  170. } else {
  171. return $data;
  172. }
  173. }
  174. /**
  175. * Gets the volume annotation. (volumeAnnotations.get)
  176. *
  177. * @param string $volumeId The volume to retrieve annotations for.
  178. * @param string $layerId The ID for the layer to get the annotations.
  179. * @param string $annotationId The ID of the volume annotation to retrieve.
  180. * @param array $optParams Optional parameters.
  181. *
  182. * @opt_param string locale The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
  183. * @opt_param string source String to identify the originator of this request.
  184. * @return Google_Volumeannotation
  185. */
  186. public function get($volumeId, $layerId, $annotationId, $optParams = array()) {
  187. $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'annotationId' => $annotationId);
  188. $params = array_merge($params, $optParams);
  189. $data = $this->__call('get', array($params));
  190. if ($this->useObjects()) {
  191. return new Google_Volumeannotation($data);
  192. } else {
  193. return $data;
  194. }
  195. }
  196. }
  197. /**
  198. * The "bookshelves" collection of methods.
  199. * Typical usage is:
  200. * <code>
  201. * $booksService = new Google_BooksService(...);
  202. * $bookshelves = $booksService->bookshelves;
  203. * </code>
  204. */
  205. class Google_BookshelvesServiceResource extends Google_ServiceResource {
  206. /**
  207. * Retrieves a list of public bookshelves for the specified user. (bookshelves.list)
  208. *
  209. * @param string $userId ID of user for whom to retrieve bookshelves.
  210. * @param array $optParams Optional parameters.
  211. *
  212. * @opt_param string source String to identify the originator of this request.
  213. * @return Google_Bookshelves
  214. */
  215. public function listBookshelves($userId, $optParams = array()) {
  216. $params = array('userId' => $userId);
  217. $params = array_merge($params, $optParams);
  218. $data = $this->__call('list', array($params));
  219. if ($this->useObjects()) {
  220. return new Google_Bookshelves($data);
  221. } else {
  222. return $data;
  223. }
  224. }
  225. /**
  226. * Retrieves metadata for a specific bookshelf for the specified user. (bookshelves.get)
  227. *
  228. * @param string $userId ID of user for whom to retrieve bookshelves.
  229. * @param string $shelf ID of bookshelf to retrieve.
  230. * @param array $optParams Optional parameters.
  231. *
  232. * @opt_param string source String to identify the originator of this request.
  233. * @return Google_Bookshelf
  234. */
  235. public function get($userId, $shelf, $optParams = array()) {
  236. $params = array('userId' => $userId, 'shelf' => $shelf);
  237. $params = array_merge($params, $optParams);
  238. $data = $this->__call('get', array($params));
  239. if ($this->useObjects()) {
  240. return new Google_Bookshelf($data);
  241. } else {
  242. return $data;
  243. }
  244. }
  245. }
  246. /**
  247. * The "volumes" collection of methods.
  248. * Typical usage is:
  249. * <code>
  250. * $booksService = new Google_BooksService(...);
  251. * $volumes = $booksService->volumes;
  252. * </code>
  253. */
  254. class Google_BookshelvesVolumesServiceResource extends Google_ServiceResource {
  255. /**
  256. * Retrieves volumes in a specific bookshelf for the specified user. (volumes.list)
  257. *
  258. * @param string $userId ID of user for whom to retrieve bookshelf volumes.
  259. * @param string $shelf ID of bookshelf to retrieve volumes.
  260. * @param array $optParams Optional parameters.
  261. *
  262. * @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults to false.
  263. * @opt_param string maxResults Maximum number of results to return
  264. * @opt_param string source String to identify the originator of this request.
  265. * @opt_param string startIndex Index of the first element to return (starts at 0)
  266. * @return Google_Volumes
  267. */
  268. public function listBookshelvesVolumes($userId, $shelf, $optParams = array()) {
  269. $params = array('userId' => $userId, 'shelf' => $shelf);
  270. $params = array_merge($params, $optParams);
  271. $data = $this->__call('list', array($params));
  272. if ($this->useObjects()) {
  273. return new Google_Volumes($data);
  274. } else {
  275. return $data;
  276. }
  277. }
  278. }
  279. /**
  280. * The "myconfig" collection of methods.
  281. * Typical usage is:
  282. * <code>
  283. * $booksService = new Google_BooksService(...);
  284. * $myconfig = $booksService->myconfig;
  285. * </code>
  286. */
  287. class Google_MyconfigServiceResource extends Google_ServiceResource {
  288. /**
  289. * Release downloaded content access restriction. (myconfig.releaseDownloadAccess)
  290. *
  291. * @param string $volumeIds The volume(s) to release restrictions for.
  292. * @param string $cpksver The device/version ID from which to release the restriction.
  293. * @param array $optParams Optional parameters.
  294. *
  295. * @opt_param string locale ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
  296. * @opt_param string source String to identify the originator of this request.
  297. * @return Google_DownloadAccesses
  298. */
  299. public function releaseDownloadAccess($volumeIds, $cpksver, $optParams = array()) {
  300. $params = array('volumeIds' => $volumeIds, 'cpksver' => $cpksver);
  301. $params = array_merge($params, $optParams);
  302. $data = $this->__call('releaseDownloadAccess', array($params));
  303. if ($this->useObjects()) {
  304. return new Google_DownloadAccesses($data);
  305. } else {
  306. return $data;
  307. }
  308. }
  309. /**
  310. * Request concurrent and download access restrictions. (myconfig.requestAccess)
  311. *
  312. * @param string $source String to identify the originator of this request.
  313. * @param string $volumeId The volume to request concurrent/download restrictions for.
  314. * @param string $nonce The client nonce value.
  315. * @param string $cpksver The device/version ID from which to request the restrictions.
  316. * @param array $optParams Optional parameters.
  317. *
  318. * @opt_param string locale ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
  319. * @return Google_RequestAccess
  320. */
  321. public function requestAccess($source, $volumeId, $nonce, $cpksver, $optParams = array()) {
  322. $params = array('source' => $source, 'volumeId' => $volumeId, 'nonce' => $nonce, 'cpksver' => $cpksver);
  323. $params = array_merge($params, $optParams);
  324. $data = $this->__call('requestAccess', array($params));
  325. if ($this->useObjects()) {
  326. return new Google_RequestAccess($data);
  327. } else {
  328. return $data;
  329. }
  330. }
  331. /**
  332. * Request downloaded content access for specified volumes on the My eBooks shelf.
  333. * (myconfig.syncVolumeLicenses)
  334. *
  335. * @param string $source String to identify the originator of this request.
  336. * @param string $nonce The client nonce value.
  337. * @param string $cpksver The device/version ID from which to release the restriction.
  338. * @param array $optParams Optional parameters.
  339. *
  340. * @opt_param string locale ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
  341. * @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults to false.
  342. * @opt_param string volumeIds The volume(s) to request download restrictions for.
  343. * @return Google_Volumes
  344. */
  345. public function syncVolumeLicenses($source, $nonce, $cpksver, $optParams = array()) {
  346. $params = array('source' => $source, 'nonce' => $nonce, 'cpksver' => $cpksver);
  347. $params = array_merge($params, $optParams);
  348. $data = $this->__call('syncVolumeLicenses', array($params));
  349. if ($this->useObjects()) {
  350. return new Google_Volumes($data);
  351. } else {
  352. return $data;
  353. }
  354. }
  355. }
  356. /**
  357. * The "volumes" collection of methods.
  358. * Typical usage is:
  359. * <code>
  360. * $booksService = new Google_BooksService(...);
  361. * $volumes = $booksService->volumes;
  362. * </code>
  363. */
  364. class Google_VolumesServiceResource extends Google_ServiceResource {
  365. /**
  366. * Performs a book search. (volumes.list)
  367. *
  368. * @param string $q Full-text search query string.
  369. * @param array $optParams Optional parameters.
  370. *
  371. * @opt_param string orderBy Sort search results.
  372. * @opt_param string projection Restrict information returned to a set of selected fields.
  373. * @opt_param string libraryRestrict Restrict search to this user's library.
  374. * @opt_param string langRestrict Restrict results to books with this language code.
  375. * @opt_param bool showPreorders Set to true to show books available for preorder. Defaults to false.
  376. * @opt_param string printType Restrict to books or magazines.
  377. * @opt_param string maxResults Maximum number of results to return.
  378. * @opt_param string filter Filter search results.
  379. * @opt_param string source String to identify the originator of this request.
  380. * @opt_param string startIndex Index of the first result to return (starts at 0)
  381. * @opt_param string download Restrict to volumes by download availability.
  382. * @opt_param string partner Restrict and brand results for partner ID.
  383. * @return Google_Volumes
  384. */
  385. public function listVolumes($q, $optParams = array()) {
  386. $params = array('q' => $q);
  387. $params = array_merge($params, $optParams);
  388. $data = $this->__call('list', array($params));
  389. if ($this->useObjects()) {
  390. return new Google_Volumes($data);
  391. } else {
  392. return $data;
  393. }
  394. }
  395. /**
  396. * Gets volume information for a single volume. (volumes.get)
  397. *
  398. * @param string $volumeId ID of volume to retrieve.
  399. * @param array $optParams Optional parameters.
  400. *
  401. * @opt_param string source String to identify the originator of this request.
  402. * @opt_param string country ISO-3166-1 code to override the IP-based location.
  403. * @opt_param string projection Restrict information returned to a set of selected fields.
  404. * @opt_param string partner Brand results for partner ID.
  405. * @return Google_Volume
  406. */
  407. public function get($volumeId, $optParams = array()) {
  408. $params = array('volumeId' => $volumeId);
  409. $params = array_merge($params, $optParams);
  410. $data = $this->__call('get', array($params));
  411. if ($this->useObjects()) {
  412. return new Google_Volume($data);
  413. } else {
  414. return $data;
  415. }
  416. }
  417. }
  418. /**
  419. * The "associated" collection of methods.
  420. * Typical usage is:
  421. * <code>
  422. * $booksService = new Google_BooksService(...);
  423. * $associated = $booksService->associated;
  424. * </code>
  425. */
  426. class Google_VolumesAssociatedServiceResource extends Google_ServiceResource {
  427. /**
  428. * Return a list of associated books. (associated.list)
  429. *
  430. * @param string $volumeId ID of the source volume.
  431. * @param array $optParams Optional parameters.
  432. *
  433. * @opt_param string projection Restrict information returned to a set of selected fields.
  434. * @opt_param string maxResults Maximum number of results to return.
  435. * @opt_param string filter Filter search results.
  436. * @opt_param string source String to identify the originator of this request.
  437. * @opt_param string startIndex Index of the first result to return (starts at 0)
  438. * @opt_param string association Association type.
  439. * @return Google_Volumes
  440. */
  441. public function listVolumesAssociated($volumeId, $optParams = array()) {
  442. $params = array('volumeId' => $volumeId);
  443. $params = array_merge($params, $optParams);
  444. $data = $this->__call('list', array($params));
  445. if ($this->useObjects()) {
  446. return new Google_Volumes($data);
  447. } else {
  448. return $data;
  449. }
  450. }
  451. }
  452. /**
  453. * The "mylibrary" collection of methods.
  454. * Typical usage is:
  455. * <code>
  456. * $booksService = new Google_BooksService(...);
  457. * $mylibrary = $booksService->mylibrary;
  458. * </code>
  459. */
  460. class Google_MylibraryServiceResource extends Google_ServiceResource {
  461. }
  462. /**
  463. * The "bookshelves" collection of methods.
  464. * Typical usage is:
  465. * <code>
  466. * $booksService = new Google_BooksService(...);
  467. * $bookshelves = $booksService->bookshelves;
  468. * </code>
  469. */
  470. class Google_MylibraryBookshelvesServiceResource extends Google_ServiceResource {
  471. /**
  472. * Removes a volume from a bookshelf. (bookshelves.removeVolume)
  473. *
  474. * @param string $shelf ID of bookshelf from which to remove a volume.
  475. * @param string $volumeId ID of volume to remove.
  476. * @param array $optParams Optional parameters.
  477. *
  478. * @opt_param string source String to identify the originator of this request.
  479. */
  480. public function removeVolume($shelf, $volumeId, $optParams = array()) {
  481. $params = array('shelf' => $shelf, 'volumeId' => $volumeId);
  482. $params = array_merge($params, $optParams);
  483. $data = $this->__call('removeVolume', array($params));
  484. return $data;
  485. }
  486. /**
  487. * Retrieves metadata for a specific bookshelf belonging to the authenticated user.
  488. * (bookshelves.get)
  489. *
  490. * @param string $shelf ID of bookshelf to retrieve.
  491. * @param array $optParams Optional parameters.
  492. *
  493. * @opt_param string source String to identify the originator of this request.
  494. * @return Google_Bookshelf
  495. */
  496. public function get($shelf, $optParams = array()) {
  497. $params = array('shelf' => $shelf);
  498. $params = array_merge($params, $optParams);
  499. $data = $this->__call('get', array($params));
  500. if ($this->useObjects()) {
  501. return new Google_Bookshelf($data);
  502. } else {
  503. return $data;
  504. }
  505. }
  506. /**
  507. * Clears all volumes from a bookshelf. (bookshelves.clearVolumes)
  508. *
  509. * @param string $shelf ID of bookshelf from which to remove a volume.
  510. * @param array $optParams Optional parameters.
  511. *
  512. * @opt_param string source String to identify the originator of this request.
  513. */
  514. public function clearVolumes($shelf, $optParams = array()) {
  515. $params = array('shelf' => $shelf);
  516. $params = array_merge($params, $optParams);
  517. $data = $this->__call('clearVolumes', array($params));
  518. return $data;
  519. }
  520. /**
  521. * Retrieves a list of bookshelves belonging to the authenticated user. (bookshelves.list)
  522. *
  523. * @param array $optParams Optional parameters.
  524. *
  525. * @opt_param string source String to identify the originator of this request.
  526. * @return Google_Bookshelves
  527. */
  528. public function listMylibraryBookshelves($optParams = array()) {
  529. $params = array();
  530. $params = array_merge($params, $optParams);
  531. $data = $this->__call('list', array($params));
  532. if ($this->useObjects()) {
  533. return new Google_Bookshelves($data);
  534. } else {
  535. return $data;
  536. }
  537. }
  538. /**
  539. * Adds a volume to a bookshelf. (bookshelves.addVolume)
  540. *
  541. * @param string $shelf ID of bookshelf to which to add a volume.
  542. * @param string $volumeId ID of volume to add.
  543. * @param array $optParams Optional parameters.
  544. *
  545. * @opt_param string source String to identify the originator of this request.
  546. */
  547. public function addVolume($shelf, $volumeId, $optParams = array()) {
  548. $params = array('shelf' => $shelf, 'volumeId' => $volumeId);
  549. $params = array_merge($params, $optParams);
  550. $data = $this->__call('addVolume', array($params));
  551. return $data;
  552. }
  553. /**
  554. * Moves a volume within a bookshelf. (bookshelves.moveVolume)
  555. *
  556. * @param string $shelf ID of bookshelf with the volume.
  557. * @param string $volumeId ID of volume to move.
  558. * @param int $volumePosition Position on shelf to move the item (0 puts the item before the current first item, 1 puts it between the first and the second and so on.)
  559. * @param array $optParams Optional parameters.
  560. *
  561. * @opt_param string source String to identify the originator of this request.
  562. */
  563. public function moveVolume($shelf, $volumeId, $volumePosition, $optParams = array()) {
  564. $params = array('shelf' => $shelf, 'volumeId' => $volumeId, 'volumePosition' => $volumePosition);
  565. $params = array_merge($params, $optParams);
  566. $data = $this->__call('moveVolume', array($params));
  567. return $data;
  568. }
  569. }
  570. /**
  571. * The "volumes" collection of methods.
  572. * Typical usage is:
  573. * <code>
  574. * $booksService = new Google_BooksService(...);
  575. * $volumes = $booksService->volumes;
  576. * </code>
  577. */
  578. class Google_MylibraryBookshelvesVolumesServiceResource extends Google_ServiceResource {
  579. /**
  580. * Gets volume information for volumes on a bookshelf. (volumes.list)
  581. *
  582. * @param string $shelf The bookshelf ID or name retrieve volumes for.
  583. * @param array $optParams Optional parameters.
  584. *
  585. * @opt_param string projection Restrict information returned to a set of selected fields.
  586. * @opt_param string country ISO-3166-1 code to override the IP-based location.
  587. * @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults to false.
  588. * @opt_param string maxResults Maximum number of results to return
  589. * @opt_param string q Full-text search query string in this bookshelf.
  590. * @opt_param string source String to identify the originator of this request.
  591. * @opt_param string startIndex Index of the first element to return (starts at 0)
  592. * @return Google_Volumes
  593. */
  594. public function listMylibraryBookshelvesVolumes($shelf, $optParams = array()) {
  595. $params = array('shelf' => $shelf);
  596. $params = array_merge($params, $optParams);
  597. $data = $this->__call('list', array($params));
  598. if ($this->useObjects()) {
  599. return new Google_Volumes($data);
  600. } else {
  601. return $data;
  602. }
  603. }
  604. }
  605. /**
  606. * The "readingpositions" collection of methods.
  607. * Typical usage is:
  608. * <code>
  609. * $booksService = new Google_BooksService(...);
  610. * $readingpositions = $booksService->readingpositions;
  611. * </code>
  612. */
  613. class Google_MylibraryReadingpositionsServiceResource extends Google_ServiceResource {
  614. /**
  615. * Sets my reading position information for a volume. (readingpositions.setPosition)
  616. *
  617. * @param string $volumeId ID of volume for which to update the reading position.
  618. * @param string $timestamp RFC 3339 UTC format timestamp associated with this reading position.
  619. * @param string $position Position string for the new volume reading position.
  620. * @param array $optParams Optional parameters.
  621. *
  622. * @opt_param string source String to identify the originator of this request.
  623. * @opt_param string contentVersion Volume content version for which this reading position applies.
  624. * @opt_param string action Action that caused this reading position to be set.
  625. */
  626. public function setPosition($volumeId, $timestamp, $position, $optParams = array()) {
  627. $params = array('volumeId' => $volumeId, 'timestamp' => $timestamp, 'position' => $position);
  628. $params = array_merge($params, $optParams);
  629. $data = $this->__call('setPosition', array($params));
  630. return $data;
  631. }
  632. /**
  633. * Retrieves my reading position information for a volume. (readingpositions.get)
  634. *
  635. * @param string $volumeId ID of volume for which to retrieve a reading position.
  636. * @param array $optParams Optional parameters.
  637. *
  638. * @opt_param string source String to identify the originator of this request.
  639. * @opt_param string contentVersion Volume content version for which this reading position is requested.
  640. * @return Google_ReadingPosition
  641. */
  642. public function get($volumeId, $optParams = array()) {
  643. $params = array('volumeId' => $volumeId);
  644. $params = array_merge($params, $optParams);
  645. $data = $this->__call('get', array($params));
  646. if ($this->useObjects()) {
  647. return new Google_ReadingPosition($data);
  648. } else {
  649. return $data;
  650. }
  651. }
  652. }
  653. /**
  654. * The "annotations" collection of methods.
  655. * Typical usage is:
  656. * <code>
  657. * $booksService = new Google_BooksService(...);
  658. * $annotations = $booksService->annotations;
  659. * </code>
  660. */
  661. class Google_MylibraryAnnotationsServiceResource extends Google_ServiceResource {
  662. /**
  663. * Inserts a new annotation. (annotations.insert)
  664. *
  665. * @param Google_Annotation $postBody
  666. * @param array $optParams Optional parameters.
  667. *
  668. * @opt_param string source String to identify the originator of this request.
  669. * @return Google_Annotation
  670. */
  671. public function insert(Google_Annotation $postBody, $optParams = array()) {
  672. $params = array('postBody' => $postBody);
  673. $params = array_merge($params, $optParams);
  674. $data = $this->__call('insert', array($params));
  675. if ($this->useObjects()) {
  676. return new Google_Annotation($data);
  677. } else {
  678. return $data;
  679. }
  680. }
  681. /**
  682. * Gets an annotation by its ID. (annotations.get)
  683. *
  684. * @param string $annotationId The ID for the annotation to retrieve.
  685. * @param array $optParams Optional parameters.
  686. *
  687. * @opt_param string source String to identify the originator of this request.
  688. * @return Google_Annotation
  689. */
  690. public function get($annotationId, $optParams = array()) {
  691. $params = array('annotationId' => $annotationId);
  692. $params = array_merge($params, $optParams);
  693. $data = $this->__call('get', array($params));
  694. if ($this->useObjects()) {
  695. return new Google_Annotation($data);
  696. } else {
  697. return $data;
  698. }
  699. }
  700. /**
  701. * Retrieves a list of annotations, possibly filtered. (annotations.list)
  702. *
  703. * @param array $optParams Optional parameters.
  704. *
  705. * @opt_param bool showDeleted Set to true to return deleted annotations. updatedMin must be in the request to use this. Defaults to false.
  706. * @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
  707. * @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
  708. * @opt_param string volumeId The volume to restrict annotations to.
  709. * @opt_param string maxResults Maximum number of results to return
  710. * @opt_param string pageToken The value of the nextToken from the previous page.
  711. * @opt_param string pageIds The page ID(s) for the volume that is being queried.
  712. * @opt_param string contentVersion The content version for the requested volume.
  713. * @opt_param string source String to identify the originator of this request.
  714. * @opt_param string layerId The layer ID to limit annotation by.
  715. * @return Google_Annotations
  716. */
  717. public function listMylibraryAnnotations($optParams = array()) {
  718. $params = array();
  719. $params = array_merge($params, $optParams);
  720. $data = $this->__call('list', array($params));
  721. if ($this->useObjects()) {
  722. return new Google_Annotations($data);
  723. } else {
  724. return $data;
  725. }
  726. }
  727. /**
  728. * Updates an existing annotation. (annotations.update)
  729. *
  730. * @param string $annotationId The ID for the annotation to update.
  731. * @param Google_Annotation $postBody
  732. * @param array $optParams Optional parameters.
  733. *
  734. * @opt_param string source String to identify the originator of this request.
  735. * @return Google_Annotation
  736. */
  737. public function update($annotationId, Google_Annotation $postBody, $optParams = array()) {
  738. $params = array('annotationId' => $annotationId, 'postBody' => $postBody);
  739. $params = array_merge($params, $optParams);
  740. $data = $this->__call('update', array($params));
  741. if ($this->useObjects()) {
  742. return new Google_Annotation($data);
  743. } else {
  744. return $data;
  745. }
  746. }
  747. /**
  748. * Deletes an annotation. (annotations.delete)
  749. *
  750. * @param string $annotationId The ID for the annotation to delete.
  751. * @param array $optParams Optional parameters.
  752. *
  753. * @opt_param string source String to identify the originator of this request.
  754. */
  755. public function delete($annotationId, $optParams = array()) {
  756. $params = array('annotationId' => $annotationId);
  757. $params = array_merge($params, $optParams);
  758. $data = $this->__call('delete', array($params));
  759. return $data;
  760. }
  761. }
  762. /**
  763. * Service definition for Google_Books (v1).
  764. *
  765. * <p>
  766. * Lets you search for books and manage your Google Books library.
  767. * </p>
  768. *
  769. * <p>
  770. * For more information about this service, see the
  771. * <a href="https://code.google.com/apis/books/docs/v1/getting_started.html" target="_blank">API Documentation</a>
  772. * </p>
  773. *
  774. * @author Google, Inc.
  775. */
  776. class Google_BooksService extends Google_Service {
  777. public $layers;
  778. public $layers_annotationData;
  779. public $layers_volumeAnnotations;
  780. public $bookshelves;
  781. public $bookshelves_volumes;
  782. public $myconfig;
  783. public $volumes;
  784. public $volumes_associated;
  785. public $mylibrary_bookshelves;
  786. public $mylibrary_bookshelves_volumes;
  787. public $mylibrary_readingpositions;
  788. public $mylibrary_annotations;
  789. /**
  790. * Constructs the internal representation of the Books service.
  791. *
  792. * @param Google_Client $client
  793. */
  794. public function __construct(Google_Client $client) {
  795. $this->servicePath = 'books/v1/';
  796. $this->version = 'v1';
  797. $this->serviceName = 'books';
  798. $client->addService($this->serviceName, $this->version);
  799. $this->layers = new Google_LayersServiceResource($this, $this->serviceName, 'layers', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "contentVersion": {"type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "200", "format": "uint32"}, "source": {"type": "string", "location": "query"}}, "id": "books.layers.list", "httpMethod": "GET", "path": "volumes/{volumeId}/layersummary", "response": {"$ref": "Layersummaries"}}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}, "contentVersion": {"type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "summaryId": {"required": true, "type": "string", "location": "path"}}, "id": "books.layers.get", "httpMethod": "GET", "path": "volumes/{volumeId}/layersummary/{summaryId}", "response": {"$ref": "Layersummary"}}}}', true));
  800. $this->layers_annotationData = new Google_LayersAnnotationDataServiceResource($this, $this->serviceName, 'annotationData', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"scale": {"minimum": "0", "type": "integer", "location": "query", "format": "int32"}, "updatedMax": {"type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "h": {"type": "integer", "location": "query", "format": "int32"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "200", "format": "uint32"}, "annotationDataId": {"repeated": true, "type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "contentVersion": {"required": true, "type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "w": {"type": "integer", "location": "query", "format": "int32"}, "layerId": {"required": true, "type": "string", "location": "path"}, "updatedMin": {"type": "string", "location": "query"}}, "id": "books.layers.annotationData.list", "httpMethod": "GET", "path": "volumes/{volumeId}/layers/{layerId}/data", "response": {"$ref": "Annotationsdata"}}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"scale": {"minimum": "0", "type": "integer", "location": "query", "format": "int32"}, "locale": {"type": "string", "location": "query"}, "h": {"type": "integer", "location": "query", "format": "int32"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "annotationDataId": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}, "contentVersion": {"required": true, "type": "string", "location": "query"}, "w": {"type": "integer", "location": "query", "format": "int32"}, "layerId": {"required": true, "type": "string", "location": "path"}}, "id": "books.layers.annotationData.get", "httpMethod": "GET", "path": "volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}", "response": {"$ref": "Annotationdata"}}}}', true));
  801. $this->layers_volumeAnnotations = new Google_LayersVolumeAnnotationsServiceResource($this, $this->serviceName, 'volumeAnnotations', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"showDeleted": {"type": "boolean", "location": "query"}, "endPosition": {"type": "string", "location": "query"}, "endOffset": {"type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "updatedMin": {"type": "string", "location": "query"}, "updatedMax": {"type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "200", "format": "uint32"}, "pageToken": {"type": "string", "location": "query"}, "contentVersion": {"required": true, "type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "startOffset": {"type": "string", "location": "query"}, "layerId": {"required": true, "type": "string", "location": "path"}, "startPosition": {"type": "string", "location": "query"}}, "id": "books.layers.volumeAnnotations.list", "httpMethod": "GET", "path": "volumes/{volumeId}/layers/{layerId}", "response": {"$ref": "Volumeannotations"}}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"locale": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "annotationId": {"required": true, "type": "string", "location": "path"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "layerId": {"required": true, "type": "string", "location": "path"}}, "id": "books.layers.volumeAnnotations.get", "httpMethod": "GET", "path": "volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}", "response": {"$ref": "Volumeannotation"}}}}', true));
  802. $this->bookshelves = new Google_BookshelvesServiceResource($this, $this->serviceName, 'bookshelves', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}}, "id": "books.bookshelves.list", "httpMethod": "GET", "path": "users/{userId}/bookshelves", "response": {"$ref": "Bookshelves"}}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}}, "id": "books.bookshelves.get", "httpMethod": "GET", "path": "users/{userId}/bookshelves/{shelf}", "response": {"$ref": "Bookshelf"}}}}', true));
  803. $this->bookshelves_volumes = new Google_BookshelvesVolumesServiceResource($this, $this->serviceName, 'volumes', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "showPreorders": {"type": "boolean", "location": "query"}, "maxResults": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}, "source": {"type": "string", "location": "query"}, "startIndex": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}, "userId": {"required": true, "type": "string", "location": "path"}}, "id": "books.bookshelves.volumes.list", "httpMethod": "GET", "path": "users/{userId}/bookshelves/{shelf}/volumes", "response": {"$ref": "Volumes"}}}}', true));
  804. $this->myconfig = new Google_MyconfigServiceResource($this, $this->serviceName, 'myconfig', json_decode('{"methods": {"releaseDownloadAccess": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"locale": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "cpksver": {"required": true, "type": "string", "location": "query"}, "volumeIds": {"repeated": true, "required": true, "type": "string", "location": "query"}}, "id": "books.myconfig.releaseDownloadAccess", "httpMethod": "POST", "path": "myconfig/releaseDownloadAccess", "response": {"$ref": "DownloadAccesses"}}, "requestAccess": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"locale": {"type": "string", "location": "query"}, "nonce": {"required": true, "type": "string", "location": "query"}, "cpksver": {"required": true, "type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "query"}, "source": {"required": true, "type": "string", "location": "query"}}, "id": "books.myconfig.requestAccess", "httpMethod": "POST", "path": "myconfig/requestAccess", "response": {"$ref": "RequestAccess"}}, "syncVolumeLicenses": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"nonce": {"required": true, "type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "showPreorders": {"type": "boolean", "location": "query"}, "cpksver": {"required": true, "type": "string", "location": "query"}, "source": {"required": true, "type": "string", "location": "query"}, "volumeIds": {"repeated": true, "type": "string", "location": "query"}}, "id": "books.myconfig.syncVolumeLicenses", "httpMethod": "POST", "path": "myconfig/syncVolumeLicenses", "response": {"$ref": "Volumes"}}}}', true));
  805. $this->volumes = new Google_VolumesServiceResource($this, $this->serviceName, 'volumes', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"orderBy": {"enum": ["newest", "relevance"], "type": "string", "location": "query"}, "q": {"required": true, "type": "string", "location": "query"}, "projection": {"enum": ["full", "lite"], "type": "string", "location": "query"}, "libraryRestrict": {"enum": ["my-library", "no-restrict"], "type": "string", "location": "query"}, "langRestrict": {"type": "string", "location": "query"}, "showPreorders": {"type": "boolean", "location": "query"}, "printType": {"enum": ["all", "books", "magazines"], "type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "40", "format": "uint32"}, "filter": {"enum": ["ebooks", "free-ebooks", "full", "paid-ebooks", "partial"], "type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "startIndex": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}, "download": {"enum": ["epub"], "type": "string", "location": "query"}, "partner": {"type": "string", "location": "query"}}, "id": "books.volumes.list", "httpMethod": "GET", "path": "volumes", "response": {"$ref": "Volumes"}}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"partner": {"type": "string", "location": "query"}, "country": {"type": "string", "location": "query"}, "projection": {"enum": ["full", "lite"], "type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}}, "id": "books.volumes.get", "httpMethod": "GET", "path": "volumes/{volumeId}", "response": {"$ref": "Volume"}}}}', true));
  806. $this->volumes_associated = new Google_VolumesAssociatedServiceResource($this, $this->serviceName, 'associated', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"projection": {"enum": ["full", "lite"], "type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "40", "format": "uint32"}, "filter": {"enum": ["ebooks", "free-ebooks", "full", "paid-ebooks", "partial"], "type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "startIndex": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}, "association": {"enum": ["complementary"], "type": "string", "location": "query"}}, "id": "books.volumes.associated.list", "httpMethod": "GET", "path": "volumes/{volumeId}/associated", "response": {"$ref": "Volumes"}}}}', true));
  807. $this->mylibrary_bookshelves = new Google_MylibraryBookshelvesServiceResource($this, $this->serviceName, 'bookshelves', json_decode('{"methods": {"removeVolume": {"scopes": ["https://www.googleapis.com/auth/books"], "path": "mylibrary/bookshelves/{shelf}/removeVolume", "id": "books.mylibrary.bookshelves.removeVolume", "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "volumeId": {"required": true, "type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}}, "httpMethod": "POST"}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}}, "id": "books.mylibrary.bookshelves.get", "httpMethod": "GET", "path": "mylibrary/bookshelves/{shelf}", "response": {"$ref": "Bookshelf"}}, "clearVolumes": {"scopes": ["https://www.googleapis.com/auth/books"], "path": "mylibrary/bookshelves/{shelf}/clearVolumes", "id": "books.mylibrary.bookshelves.clearVolumes", "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}}, "httpMethod": "POST"}, "list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}}, "response": {"$ref": "Bookshelves"}, "httpMethod": "GET", "path": "mylibrary/bookshelves", "id": "books.mylibrary.bookshelves.list"}, "addVolume": {"scopes": ["https://www.googleapis.com/auth/books"], "path": "mylibrary/bookshelves/{shelf}/addVolume", "id": "books.mylibrary.bookshelves.addVolume", "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "volumeId": {"required": true, "type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}}, "httpMethod": "POST"}, "moveVolume": {"scopes": ["https://www.googleapis.com/auth/books"], "path": "mylibrary/bookshelves/{shelf}/moveVolume", "id": "books.mylibrary.bookshelves.moveVolume", "parameters": {"source": {"type": "string", "location": "query"}, "volumePosition": {"required": true, "type": "integer", "location": "query", "format": "int32"}, "volumeId": {"required": true, "type": "string", "location": "query"}, "shelf": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "POST"}}}', true));
  808. $this->mylibrary_bookshelves_volumes = new Google_MylibraryBookshelvesVolumesServiceResource($this, $this->serviceName, 'volumes', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"projection": {"enum": ["full", "lite"], "type": "string", "location": "query"}, "country": {"type": "string", "location": "query"}, "showPreorders": {"type": "boolean", "location": "query"}, "maxResults": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}, "q": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "startIndex": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}, "shelf": {"required": true, "type": "string", "location": "path"}}, "id": "books.mylibrary.bookshelves.volumes.list", "httpMethod": "GET", "path": "mylibrary/bookshelves/{shelf}/volumes", "response": {"$ref": "Volumes"}}}}', true));
  809. $this->mylibrary_readingpositions = new Google_MylibraryReadingpositionsServiceResource($this, $this->serviceName, 'readingpositions', json_decode('{"methods": {"setPosition": {"scopes": ["https://www.googleapis.com/auth/books"], "path": "mylibrary/readingpositions/{volumeId}/setPosition", "id": "books.mylibrary.readingpositions.setPosition", "parameters": {"timestamp": {"required": true, "type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}, "contentVersion": {"type": "string", "location": "query"}, "action": {"enum": ["bookmark", "chapter", "next-page", "prev-page", "scroll", "search"], "type": "string", "location": "query"}, "position": {"required": true, "type": "string", "location": "query"}}, "httpMethod": "POST"}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}, "contentVersion": {"type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}}, "id": "books.mylibrary.readingpositions.get", "httpMethod": "GET", "path…

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