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