source: vendor/google/apiclient-services/src/Books.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

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