Differences Between: [Versions 310 and 403] [Versions 311 and 403] [Versions 39 and 403] [Versions 400 and 403] [Versions 401 and 403]
1 <?php 2 /* 3 * Copyright 2010 Google Inc. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 6 * use this file except in compliance with the License. You may obtain a copy of 7 * the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 14 * License for the specific language governing permissions and limitations under 15 * the License. 16 */ 17 18 /** 19 * Service definition for Blogger (v3). 20 * 21 * <p> 22 * API for access to the data within Blogger.</p> 23 * 24 * <p> 25 * For more information about this service, see the API 26 * <a href="https://developers.google.com/blogger/docs/3.0/getting_started" target="_blank">Documentation</a> 27 * </p> 28 * 29 * @author Google, Inc. 30 */ 31 #[AllowDynamicProperties] 32 class Google_Service_Blogger extends Google_Service 33 { 34 /** Manage your Blogger account. */ 35 const BLOGGER = 36 "https://www.googleapis.com/auth/blogger"; 37 /** View your Blogger account. */ 38 const BLOGGER_READONLY = 39 "https://www.googleapis.com/auth/blogger.readonly"; 40 41 public $blogUserInfos; 42 public $blogs; 43 public $comments; 44 public $pageViews; 45 public $pages; 46 public $postUserInfos; 47 public $posts; 48 public $users; 49 50 51 /** 52 * Constructs the internal representation of the Blogger service. 53 * 54 * @param Google_Client $client 55 */ 56 public function __construct(Google_Client $client) 57 { 58 parent::__construct($client); 59 $this->rootUrl = 'https://www.googleapis.com/'; 60 $this->servicePath = 'blogger/v3/'; 61 $this->version = 'v3'; 62 $this->serviceName = 'blogger'; 63 64 $this->blogUserInfos = new Google_Service_Blogger_BlogUserInfos_Resource( 65 $this, 66 $this->serviceName, 67 'blogUserInfos', 68 array( 69 'methods' => array( 70 'get' => array( 71 'path' => 'users/{userId}/blogs/{blogId}', 72 'httpMethod' => 'GET', 73 'parameters' => array( 74 'userId' => array( 75 'location' => 'path', 76 'type' => 'string', 77 'required' => true, 78 ), 79 'blogId' => array( 80 'location' => 'path', 81 'type' => 'string', 82 'required' => true, 83 ), 84 'maxPosts' => array( 85 'location' => 'query', 86 'type' => 'integer', 87 ), 88 ), 89 ), 90 ) 91 ) 92 ); 93 $this->blogs = new Google_Service_Blogger_Blogs_Resource( 94 $this, 95 $this->serviceName, 96 'blogs', 97 array( 98 'methods' => array( 99 'get' => array( 100 'path' => 'blogs/{blogId}', 101 'httpMethod' => 'GET', 102 'parameters' => array( 103 'blogId' => array( 104 'location' => 'path', 105 'type' => 'string', 106 'required' => true, 107 ), 108 'maxPosts' => array( 109 'location' => 'query', 110 'type' => 'integer', 111 ), 112 'view' => array( 113 'location' => 'query', 114 'type' => 'string', 115 ), 116 ), 117 ),'getByUrl' => array( 118 'path' => 'blogs/byurl', 119 'httpMethod' => 'GET', 120 'parameters' => array( 121 'url' => array( 122 'location' => 'query', 123 'type' => 'string', 124 'required' => true, 125 ), 126 'view' => array( 127 'location' => 'query', 128 'type' => 'string', 129 ), 130 ), 131 ),'listByUser' => array( 132 'path' => 'users/{userId}/blogs', 133 'httpMethod' => 'GET', 134 'parameters' => array( 135 'userId' => array( 136 'location' => 'path', 137 'type' => 'string', 138 'required' => true, 139 ), 140 'fetchUserInfo' => array( 141 'location' => 'query', 142 'type' => 'boolean', 143 ), 144 'status' => array( 145 'location' => 'query', 146 'type' => 'string', 147 'repeated' => true, 148 ), 149 'role' => array( 150 'location' => 'query', 151 'type' => 'string', 152 'repeated' => true, 153 ), 154 'view' => array( 155 'location' => 'query', 156 'type' => 'string', 157 ), 158 ), 159 ), 160 ) 161 ) 162 ); 163 $this->comments = new Google_Service_Blogger_Comments_Resource( 164 $this, 165 $this->serviceName, 166 'comments', 167 array( 168 'methods' => array( 169 'approve' => array( 170 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/approve', 171 'httpMethod' => 'POST', 172 'parameters' => array( 173 'blogId' => array( 174 'location' => 'path', 175 'type' => 'string', 176 'required' => true, 177 ), 178 'postId' => array( 179 'location' => 'path', 180 'type' => 'string', 181 'required' => true, 182 ), 183 'commentId' => array( 184 'location' => 'path', 185 'type' => 'string', 186 'required' => true, 187 ), 188 ), 189 ),'delete' => array( 190 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}', 191 'httpMethod' => 'DELETE', 192 'parameters' => array( 193 'blogId' => array( 194 'location' => 'path', 195 'type' => 'string', 196 'required' => true, 197 ), 198 'postId' => array( 199 'location' => 'path', 200 'type' => 'string', 201 'required' => true, 202 ), 203 'commentId' => array( 204 'location' => 'path', 205 'type' => 'string', 206 'required' => true, 207 ), 208 ), 209 ),'get' => array( 210 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}', 211 'httpMethod' => 'GET', 212 'parameters' => array( 213 'blogId' => array( 214 'location' => 'path', 215 'type' => 'string', 216 'required' => true, 217 ), 218 'postId' => array( 219 'location' => 'path', 220 'type' => 'string', 221 'required' => true, 222 ), 223 'commentId' => array( 224 'location' => 'path', 225 'type' => 'string', 226 'required' => true, 227 ), 228 'view' => array( 229 'location' => 'query', 230 'type' => 'string', 231 ), 232 ), 233 ),'list' => array( 234 'path' => 'blogs/{blogId}/posts/{postId}/comments', 235 'httpMethod' => 'GET', 236 'parameters' => array( 237 'blogId' => array( 238 'location' => 'path', 239 'type' => 'string', 240 'required' => true, 241 ), 242 'postId' => array( 243 'location' => 'path', 244 'type' => 'string', 245 'required' => true, 246 ), 247 'status' => array( 248 'location' => 'query', 249 'type' => 'string', 250 'repeated' => true, 251 ), 252 'startDate' => array( 253 'location' => 'query', 254 'type' => 'string', 255 ), 256 'endDate' => array( 257 'location' => 'query', 258 'type' => 'string', 259 ), 260 'maxResults' => array( 261 'location' => 'query', 262 'type' => 'integer', 263 ), 264 'pageToken' => array( 265 'location' => 'query', 266 'type' => 'string', 267 ), 268 'fetchBodies' => array( 269 'location' => 'query', 270 'type' => 'boolean', 271 ), 272 'view' => array( 273 'location' => 'query', 274 'type' => 'string', 275 ), 276 ), 277 ),'listByBlog' => array( 278 'path' => 'blogs/{blogId}/comments', 279 'httpMethod' => 'GET', 280 'parameters' => array( 281 'blogId' => array( 282 'location' => 'path', 283 'type' => 'string', 284 'required' => true, 285 ), 286 'status' => array( 287 'location' => 'query', 288 'type' => 'string', 289 'repeated' => true, 290 ), 291 'startDate' => array( 292 'location' => 'query', 293 'type' => 'string', 294 ), 295 'endDate' => array( 296 'location' => 'query', 297 'type' => 'string', 298 ), 299 'maxResults' => array( 300 'location' => 'query', 301 'type' => 'integer', 302 ), 303 'pageToken' => array( 304 'location' => 'query', 305 'type' => 'string', 306 ), 307 'fetchBodies' => array( 308 'location' => 'query', 309 'type' => 'boolean', 310 ), 311 ), 312 ),'markAsSpam' => array( 313 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/spam', 314 'httpMethod' => 'POST', 315 'parameters' => array( 316 'blogId' => array( 317 'location' => 'path', 318 'type' => 'string', 319 'required' => true, 320 ), 321 'postId' => array( 322 'location' => 'path', 323 'type' => 'string', 324 'required' => true, 325 ), 326 'commentId' => array( 327 'location' => 'path', 328 'type' => 'string', 329 'required' => true, 330 ), 331 ), 332 ),'removeContent' => array( 333 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/removecontent', 334 'httpMethod' => 'POST', 335 'parameters' => array( 336 'blogId' => array( 337 'location' => 'path', 338 'type' => 'string', 339 'required' => true, 340 ), 341 'postId' => array( 342 'location' => 'path', 343 'type' => 'string', 344 'required' => true, 345 ), 346 'commentId' => array( 347 'location' => 'path', 348 'type' => 'string', 349 'required' => true, 350 ), 351 ), 352 ), 353 ) 354 ) 355 ); 356 $this->pageViews = new Google_Service_Blogger_PageViews_Resource( 357 $this, 358 $this->serviceName, 359 'pageViews', 360 array( 361 'methods' => array( 362 'get' => array( 363 'path' => 'blogs/{blogId}/pageviews', 364 'httpMethod' => 'GET', 365 'parameters' => array( 366 'blogId' => array( 367 'location' => 'path', 368 'type' => 'string', 369 'required' => true, 370 ), 371 'range' => array( 372 'location' => 'query', 373 'type' => 'string', 374 'repeated' => true, 375 ), 376 ), 377 ), 378 ) 379 ) 380 ); 381 $this->pages = new Google_Service_Blogger_Pages_Resource( 382 $this, 383 $this->serviceName, 384 'pages', 385 array( 386 'methods' => array( 387 'delete' => array( 388 'path' => 'blogs/{blogId}/pages/{pageId}', 389 'httpMethod' => 'DELETE', 390 'parameters' => array( 391 'blogId' => array( 392 'location' => 'path', 393 'type' => 'string', 394 'required' => true, 395 ), 396 'pageId' => array( 397 'location' => 'path', 398 'type' => 'string', 399 'required' => true, 400 ), 401 ), 402 ),'get' => array( 403 'path' => 'blogs/{blogId}/pages/{pageId}', 404 'httpMethod' => 'GET', 405 'parameters' => array( 406 'blogId' => array( 407 'location' => 'path', 408 'type' => 'string', 409 'required' => true, 410 ), 411 'pageId' => array( 412 'location' => 'path', 413 'type' => 'string', 414 'required' => true, 415 ), 416 'view' => array( 417 'location' => 'query', 418 'type' => 'string', 419 ), 420 ), 421 ),'insert' => array( 422 'path' => 'blogs/{blogId}/pages', 423 'httpMethod' => 'POST', 424 'parameters' => array( 425 'blogId' => array( 426 'location' => 'path', 427 'type' => 'string', 428 'required' => true, 429 ), 430 'isDraft' => array( 431 'location' => 'query', 432 'type' => 'boolean', 433 ), 434 ), 435 ),'list' => array( 436 'path' => 'blogs/{blogId}/pages', 437 'httpMethod' => 'GET', 438 'parameters' => array( 439 'blogId' => array( 440 'location' => 'path', 441 'type' => 'string', 442 'required' => true, 443 ), 444 'status' => array( 445 'location' => 'query', 446 'type' => 'string', 447 'repeated' => true, 448 ), 449 'maxResults' => array( 450 'location' => 'query', 451 'type' => 'integer', 452 ), 453 'pageToken' => array( 454 'location' => 'query', 455 'type' => 'string', 456 ), 457 'fetchBodies' => array( 458 'location' => 'query', 459 'type' => 'boolean', 460 ), 461 'view' => array( 462 'location' => 'query', 463 'type' => 'string', 464 ), 465 ), 466 ),'patch' => array( 467 'path' => 'blogs/{blogId}/pages/{pageId}', 468 'httpMethod' => 'PATCH', 469 'parameters' => array( 470 'blogId' => array( 471 'location' => 'path', 472 'type' => 'string', 473 'required' => true, 474 ), 475 'pageId' => array( 476 'location' => 'path', 477 'type' => 'string', 478 'required' => true, 479 ), 480 'revert' => array( 481 'location' => 'query', 482 'type' => 'boolean', 483 ), 484 'publish' => array( 485 'location' => 'query', 486 'type' => 'boolean', 487 ), 488 ), 489 ),'publish' => array( 490 'path' => 'blogs/{blogId}/pages/{pageId}/publish', 491 'httpMethod' => 'POST', 492 'parameters' => array( 493 'blogId' => array( 494 'location' => 'path', 495 'type' => 'string', 496 'required' => true, 497 ), 498 'pageId' => array( 499 'location' => 'path', 500 'type' => 'string', 501 'required' => true, 502 ), 503 ), 504 ),'revert' => array( 505 'path' => 'blogs/{blogId}/pages/{pageId}/revert', 506 'httpMethod' => 'POST', 507 'parameters' => array( 508 'blogId' => array( 509 'location' => 'path', 510 'type' => 'string', 511 'required' => true, 512 ), 513 'pageId' => array( 514 'location' => 'path', 515 'type' => 'string', 516 'required' => true, 517 ), 518 ), 519 ),'update' => array( 520 'path' => 'blogs/{blogId}/pages/{pageId}', 521 'httpMethod' => 'PUT', 522 'parameters' => array( 523 'blogId' => array( 524 'location' => 'path', 525 'type' => 'string', 526 'required' => true, 527 ), 528 'pageId' => array( 529 'location' => 'path', 530 'type' => 'string', 531 'required' => true, 532 ), 533 'revert' => array( 534 'location' => 'query', 535 'type' => 'boolean', 536 ), 537 'publish' => array( 538 'location' => 'query', 539 'type' => 'boolean', 540 ), 541 ), 542 ), 543 ) 544 ) 545 ); 546 $this->postUserInfos = new Google_Service_Blogger_PostUserInfos_Resource( 547 $this, 548 $this->serviceName, 549 'postUserInfos', 550 array( 551 'methods' => array( 552 'get' => array( 553 'path' => 'users/{userId}/blogs/{blogId}/posts/{postId}', 554 'httpMethod' => 'GET', 555 'parameters' => array( 556 'userId' => array( 557 'location' => 'path', 558 'type' => 'string', 559 'required' => true, 560 ), 561 'blogId' => array( 562 'location' => 'path', 563 'type' => 'string', 564 'required' => true, 565 ), 566 'postId' => array( 567 'location' => 'path', 568 'type' => 'string', 569 'required' => true, 570 ), 571 'maxComments' => array( 572 'location' => 'query', 573 'type' => 'integer', 574 ), 575 ), 576 ),'list' => array( 577 'path' => 'users/{userId}/blogs/{blogId}/posts', 578 'httpMethod' => 'GET', 579 'parameters' => array( 580 'userId' => array( 581 'location' => 'path', 582 'type' => 'string', 583 'required' => true, 584 ), 585 'blogId' => array( 586 'location' => 'path', 587 'type' => 'string', 588 'required' => true, 589 ), 590 'orderBy' => array( 591 'location' => 'query', 592 'type' => 'string', 593 ), 594 'startDate' => array( 595 'location' => 'query', 596 'type' => 'string', 597 ), 598 'endDate' => array( 599 'location' => 'query', 600 'type' => 'string', 601 ), 602 'labels' => array( 603 'location' => 'query', 604 'type' => 'string', 605 ), 606 'maxResults' => array( 607 'location' => 'query', 608 'type' => 'integer', 609 ), 610 'pageToken' => array( 611 'location' => 'query', 612 'type' => 'string', 613 ), 614 'status' => array( 615 'location' => 'query', 616 'type' => 'string', 617 'repeated' => true, 618 ), 619 'fetchBodies' => array( 620 'location' => 'query', 621 'type' => 'boolean', 622 ), 623 'view' => array( 624 'location' => 'query', 625 'type' => 'string', 626 ), 627 ), 628 ), 629 ) 630 ) 631 ); 632 $this->posts = new Google_Service_Blogger_Posts_Resource( 633 $this, 634 $this->serviceName, 635 'posts', 636 array( 637 'methods' => array( 638 'delete' => array( 639 'path' => 'blogs/{blogId}/posts/{postId}', 640 'httpMethod' => 'DELETE', 641 'parameters' => array( 642 'blogId' => array( 643 'location' => 'path', 644 'type' => 'string', 645 'required' => true, 646 ), 647 'postId' => array( 648 'location' => 'path', 649 'type' => 'string', 650 'required' => true, 651 ), 652 ), 653 ),'get' => array( 654 'path' => 'blogs/{blogId}/posts/{postId}', 655 'httpMethod' => 'GET', 656 'parameters' => array( 657 'blogId' => array( 658 'location' => 'path', 659 'type' => 'string', 660 'required' => true, 661 ), 662 'postId' => array( 663 'location' => 'path', 664 'type' => 'string', 665 'required' => true, 666 ), 667 'fetchBody' => array( 668 'location' => 'query', 669 'type' => 'boolean', 670 ), 671 'maxComments' => array( 672 'location' => 'query', 673 'type' => 'integer', 674 ), 675 'fetchImages' => array( 676 'location' => 'query', 677 'type' => 'boolean', 678 ), 679 'view' => array( 680 'location' => 'query', 681 'type' => 'string', 682 ), 683 ), 684 ),'getByPath' => array( 685 'path' => 'blogs/{blogId}/posts/bypath', 686 'httpMethod' => 'GET', 687 'parameters' => array( 688 'blogId' => array( 689 'location' => 'path', 690 'type' => 'string', 691 'required' => true, 692 ), 693 'path' => array( 694 'location' => 'query', 695 'type' => 'string', 696 'required' => true, 697 ), 698 'maxComments' => array( 699 'location' => 'query', 700 'type' => 'integer', 701 ), 702 'view' => array( 703 'location' => 'query', 704 'type' => 'string', 705 ), 706 ), 707 ),'insert' => array( 708 'path' => 'blogs/{blogId}/posts', 709 'httpMethod' => 'POST', 710 'parameters' => array( 711 'blogId' => array( 712 'location' => 'path', 713 'type' => 'string', 714 'required' => true, 715 ), 716 'fetchImages' => array( 717 'location' => 'query', 718 'type' => 'boolean', 719 ), 720 'isDraft' => array( 721 'location' => 'query', 722 'type' => 'boolean', 723 ), 724 'fetchBody' => array( 725 'location' => 'query', 726 'type' => 'boolean', 727 ), 728 ), 729 ),'list' => array( 730 'path' => 'blogs/{blogId}/posts', 731 'httpMethod' => 'GET', 732 'parameters' => array( 733 'blogId' => array( 734 'location' => 'path', 735 'type' => 'string', 736 'required' => true, 737 ), 738 'orderBy' => array( 739 'location' => 'query', 740 'type' => 'string', 741 ), 742 'startDate' => array( 743 'location' => 'query', 744 'type' => 'string', 745 ), 746 'endDate' => array( 747 'location' => 'query', 748 'type' => 'string', 749 ), 750 'labels' => array( 751 'location' => 'query', 752 'type' => 'string', 753 ), 754 'maxResults' => array( 755 'location' => 'query', 756 'type' => 'integer', 757 ), 758 'fetchImages' => array( 759 'location' => 'query', 760 'type' => 'boolean', 761 ), 762 'pageToken' => array( 763 'location' => 'query', 764 'type' => 'string', 765 ), 766 'status' => array( 767 'location' => 'query', 768 'type' => 'string', 769 'repeated' => true, 770 ), 771 'fetchBodies' => array( 772 'location' => 'query', 773 'type' => 'boolean', 774 ), 775 'view' => array( 776 'location' => 'query', 777 'type' => 'string', 778 ), 779 ), 780 ),'patch' => array( 781 'path' => 'blogs/{blogId}/posts/{postId}', 782 'httpMethod' => 'PATCH', 783 'parameters' => array( 784 'blogId' => array( 785 'location' => 'path', 786 'type' => 'string', 787 'required' => true, 788 ), 789 'postId' => array( 790 'location' => 'path', 791 'type' => 'string', 792 'required' => true, 793 ), 794 'revert' => array( 795 'location' => 'query', 796 'type' => 'boolean', 797 ), 798 'publish' => array( 799 'location' => 'query', 800 'type' => 'boolean', 801 ), 802 'fetchBody' => array( 803 'location' => 'query', 804 'type' => 'boolean', 805 ), 806 'maxComments' => array( 807 'location' => 'query', 808 'type' => 'integer', 809 ), 810 'fetchImages' => array( 811 'location' => 'query', 812 'type' => 'boolean', 813 ), 814 ), 815 ),'publish' => array( 816 'path' => 'blogs/{blogId}/posts/{postId}/publish', 817 'httpMethod' => 'POST', 818 'parameters' => array( 819 'blogId' => array( 820 'location' => 'path', 821 'type' => 'string', 822 'required' => true, 823 ), 824 'postId' => array( 825 'location' => 'path', 826 'type' => 'string', 827 'required' => true, 828 ), 829 'publishDate' => array( 830 'location' => 'query', 831 'type' => 'string', 832 ), 833 ), 834 ),'revert' => array( 835 'path' => 'blogs/{blogId}/posts/{postId}/revert', 836 'httpMethod' => 'POST', 837 'parameters' => array( 838 'blogId' => array( 839 'location' => 'path', 840 'type' => 'string', 841 'required' => true, 842 ), 843 'postId' => array( 844 'location' => 'path', 845 'type' => 'string', 846 'required' => true, 847 ), 848 ), 849 ),'search' => array( 850 'path' => 'blogs/{blogId}/posts/search', 851 'httpMethod' => 'GET', 852 'parameters' => array( 853 'blogId' => array( 854 'location' => 'path', 855 'type' => 'string', 856 'required' => true, 857 ), 858 'q' => array( 859 'location' => 'query', 860 'type' => 'string', 861 'required' => true, 862 ), 863 'orderBy' => array( 864 'location' => 'query', 865 'type' => 'string', 866 ), 867 'fetchBodies' => array( 868 'location' => 'query', 869 'type' => 'boolean', 870 ), 871 ), 872 ),'update' => array( 873 'path' => 'blogs/{blogId}/posts/{postId}', 874 'httpMethod' => 'PUT', 875 'parameters' => array( 876 'blogId' => array( 877 'location' => 'path', 878 'type' => 'string', 879 'required' => true, 880 ), 881 'postId' => array( 882 'location' => 'path', 883 'type' => 'string', 884 'required' => true, 885 ), 886 'revert' => array( 887 'location' => 'query', 888 'type' => 'boolean', 889 ), 890 'publish' => array( 891 'location' => 'query', 892 'type' => 'boolean', 893 ), 894 'fetchBody' => array( 895 'location' => 'query', 896 'type' => 'boolean', 897 ), 898 'maxComments' => array( 899 'location' => 'query', 900 'type' => 'integer', 901 ), 902 'fetchImages' => array( 903 'location' => 'query', 904 'type' => 'boolean', 905 ), 906 ), 907 ), 908 ) 909 ) 910 ); 911 $this->users = new Google_Service_Blogger_Users_Resource( 912 $this, 913 $this->serviceName, 914 'users', 915 array( 916 'methods' => array( 917 'get' => array( 918 'path' => 'users/{userId}', 919 'httpMethod' => 'GET', 920 'parameters' => array( 921 'userId' => array( 922 'location' => 'path', 923 'type' => 'string', 924 'required' => true, 925 ), 926 ), 927 ), 928 ) 929 ) 930 ); 931 } 932 } 933 934 935 /** 936 * The "blogUserInfos" collection of methods. 937 * Typical usage is: 938 * <code> 939 * $bloggerService = new Google_Service_Blogger(...); 940 * $blogUserInfos = $bloggerService->blogUserInfos; 941 * </code> 942 */ 943 #[AllowDynamicProperties] 944 class Google_Service_Blogger_BlogUserInfos_Resource extends Google_Service_Resource 945 { 946 947 /** 948 * Gets one blog and user info pair by blogId and userId. (blogUserInfos.get) 949 * 950 * @param string $userId ID of the user whose blogs are to be fetched. Either 951 * the word 'self' (sans quote marks) or the user's profile identifier. 952 * @param string $blogId The ID of the blog to get. 953 * @param array $optParams Optional parameters. 954 * 955 * @opt_param string maxPosts Maximum number of posts to pull back with the 956 * blog. 957 * @return Google_Service_Blogger_BlogUserInfo 958 */ 959 public function get($userId, $blogId, $optParams = array()) 960 { 961 $params = array('userId' => $userId, 'blogId' => $blogId); 962 $params = array_merge($params, $optParams); 963 return $this->call('get', array($params), "Google_Service_Blogger_BlogUserInfo"); 964 } 965 } 966 967 /** 968 * The "blogs" collection of methods. 969 * Typical usage is: 970 * <code> 971 * $bloggerService = new Google_Service_Blogger(...); 972 * $blogs = $bloggerService->blogs; 973 * </code> 974 */ 975 #[AllowDynamicProperties] 976 class Google_Service_Blogger_Blogs_Resource extends Google_Service_Resource 977 { 978 979 /** 980 * Gets one blog by ID. (blogs.get) 981 * 982 * @param string $blogId The ID of the blog to get. 983 * @param array $optParams Optional parameters. 984 * 985 * @opt_param string maxPosts Maximum number of posts to pull back with the 986 * blog. 987 * @opt_param string view Access level with which to view the blog. Note that 988 * some fields require elevated access. 989 * @return Google_Service_Blogger_Blog 990 */ 991 public function get($blogId, $optParams = array()) 992 { 993 $params = array('blogId' => $blogId); 994 $params = array_merge($params, $optParams); 995 return $this->call('get', array($params), "Google_Service_Blogger_Blog"); 996 } 997 998 /** 999 * Retrieve a Blog by URL. (blogs.getByUrl) 1000 * 1001 * @param string $url The URL of the blog to retrieve. 1002 * @param array $optParams Optional parameters. 1003 * 1004 * @opt_param string view Access level with which to view the blog. Note that 1005 * some fields require elevated access. 1006 * @return Google_Service_Blogger_Blog 1007 */ 1008 public function getByUrl($url, $optParams = array()) 1009 { 1010 $params = array('url' => $url); 1011 $params = array_merge($params, $optParams); 1012 return $this->call('getByUrl', array($params), "Google_Service_Blogger_Blog"); 1013 } 1014 1015 /** 1016 * Retrieves a list of blogs, possibly filtered. (blogs.listByUser) 1017 * 1018 * @param string $userId ID of the user whose blogs are to be fetched. Either 1019 * the word 'self' (sans quote marks) or the user's profile identifier. 1020 * @param array $optParams Optional parameters. 1021 * 1022 * @opt_param bool fetchUserInfo Whether the response is a list of blogs with 1023 * per-user information instead of just blogs. 1024 * @opt_param string status Blog statuses to include in the result (default: 1025 * Live blogs only). Note that ADMIN access is required to view deleted blogs. 1026 * @opt_param string role User access types for blogs to include in the results, 1027 * e.g. AUTHOR will return blogs where the user has author level access. If no 1028 * roles are specified, defaults to ADMIN and AUTHOR roles. 1029 * @opt_param string view Access level with which to view the blogs. Note that 1030 * some fields require elevated access. 1031 * @return Google_Service_Blogger_BlogList 1032 */ 1033 public function listByUser($userId, $optParams = array()) 1034 { 1035 $params = array('userId' => $userId); 1036 $params = array_merge($params, $optParams); 1037 return $this->call('listByUser', array($params), "Google_Service_Blogger_BlogList"); 1038 } 1039 } 1040 1041 /** 1042 * The "comments" collection of methods. 1043 * Typical usage is: 1044 * <code> 1045 * $bloggerService = new Google_Service_Blogger(...); 1046 * $comments = $bloggerService->comments; 1047 * </code> 1048 */ 1049 #[AllowDynamicProperties] 1050 class Google_Service_Blogger_Comments_Resource extends Google_Service_Resource 1051 { 1052 1053 /** 1054 * Marks a comment as not spam. (comments.approve) 1055 * 1056 * @param string $blogId The ID of the Blog. 1057 * @param string $postId The ID of the Post. 1058 * @param string $commentId The ID of the comment to mark as not spam. 1059 * @param array $optParams Optional parameters. 1060 * @return Google_Service_Blogger_Comment 1061 */ 1062 public function approve($blogId, $postId, $commentId, $optParams = array()) 1063 { 1064 $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); 1065 $params = array_merge($params, $optParams); 1066 return $this->call('approve', array($params), "Google_Service_Blogger_Comment"); 1067 } 1068 1069 /** 1070 * Delete a comment by ID. (comments.delete) 1071 * 1072 * @param string $blogId The ID of the Blog. 1073 * @param string $postId The ID of the Post. 1074 * @param string $commentId The ID of the comment to delete. 1075 * @param array $optParams Optional parameters. 1076 */ 1077 public function delete($blogId, $postId, $commentId, $optParams = array()) 1078 { 1079 $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); 1080 $params = array_merge($params, $optParams); 1081 return $this->call('delete', array($params)); 1082 } 1083 1084 /** 1085 * Gets one comment by ID. (comments.get) 1086 * 1087 * @param string $blogId ID of the blog to containing the comment. 1088 * @param string $postId ID of the post to fetch posts from. 1089 * @param string $commentId The ID of the comment to get. 1090 * @param array $optParams Optional parameters. 1091 * 1092 * @opt_param string view Access level for the requested comment (default: 1093 * READER). Note that some comments will require elevated permissions, for 1094 * example comments where the parent posts which is in a draft state, or 1095 * comments that are pending moderation. 1096 * @return Google_Service_Blogger_Comment 1097 */ 1098 public function get($blogId, $postId, $commentId, $optParams = array()) 1099 { 1100 $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); 1101 $params = array_merge($params, $optParams); 1102 return $this->call('get', array($params), "Google_Service_Blogger_Comment"); 1103 } 1104 1105 /** 1106 * Retrieves the comments for a post, possibly filtered. (comments.listComments) 1107 * 1108 * @param string $blogId ID of the blog to fetch comments from. 1109 * @param string $postId ID of the post to fetch posts from. 1110 * @param array $optParams Optional parameters. 1111 * 1112 * @opt_param string status 1113 * @opt_param string startDate Earliest date of comment to fetch, a date-time 1114 * with RFC 3339 formatting. 1115 * @opt_param string endDate Latest date of comment to fetch, a date-time with 1116 * RFC 3339 formatting. 1117 * @opt_param string maxResults Maximum number of comments to include in the 1118 * result. 1119 * @opt_param string pageToken Continuation token if request is paged. 1120 * @opt_param bool fetchBodies Whether the body content of the comments is 1121 * included. 1122 * @opt_param string view Access level with which to view the returned result. 1123 * Note that some fields require elevated access. 1124 * @return Google_Service_Blogger_CommentList 1125 */ 1126 public function listComments($blogId, $postId, $optParams = array()) 1127 { 1128 $params = array('blogId' => $blogId, 'postId' => $postId); 1129 $params = array_merge($params, $optParams); 1130 return $this->call('list', array($params), "Google_Service_Blogger_CommentList"); 1131 } 1132 1133 /** 1134 * Retrieves the comments for a blog, across all posts, possibly filtered. 1135 * (comments.listByBlog) 1136 * 1137 * @param string $blogId ID of the blog to fetch comments from. 1138 * @param array $optParams Optional parameters. 1139 * 1140 * @opt_param string status 1141 * @opt_param string startDate Earliest date of comment to fetch, a date-time 1142 * with RFC 3339 formatting. 1143 * @opt_param string endDate Latest date of comment to fetch, a date-time with 1144 * RFC 3339 formatting. 1145 * @opt_param string maxResults Maximum number of comments to include in the 1146 * result. 1147 * @opt_param string pageToken Continuation token if request is paged. 1148 * @opt_param bool fetchBodies Whether the body content of the comments is 1149 * included. 1150 * @return Google_Service_Blogger_CommentList 1151 */ 1152 public function listByBlog($blogId, $optParams = array()) 1153 { 1154 $params = array('blogId' => $blogId); 1155 $params = array_merge($params, $optParams); 1156 return $this->call('listByBlog', array($params), "Google_Service_Blogger_CommentList"); 1157 } 1158 1159 /** 1160 * Marks a comment as spam. (comments.markAsSpam) 1161 * 1162 * @param string $blogId The ID of the Blog. 1163 * @param string $postId The ID of the Post. 1164 * @param string $commentId The ID of the comment to mark as spam. 1165 * @param array $optParams Optional parameters. 1166 * @return Google_Service_Blogger_Comment 1167 */ 1168 public function markAsSpam($blogId, $postId, $commentId, $optParams = array()) 1169 { 1170 $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); 1171 $params = array_merge($params, $optParams); 1172 return $this->call('markAsSpam', array($params), "Google_Service_Blogger_Comment"); 1173 } 1174 1175 /** 1176 * Removes the content of a comment. (comments.removeContent) 1177 * 1178 * @param string $blogId The ID of the Blog. 1179 * @param string $postId The ID of the Post. 1180 * @param string $commentId The ID of the comment to delete content from. 1181 * @param array $optParams Optional parameters. 1182 * @return Google_Service_Blogger_Comment 1183 */ 1184 public function removeContent($blogId, $postId, $commentId, $optParams = array()) 1185 { 1186 $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId); 1187 $params = array_merge($params, $optParams); 1188 return $this->call('removeContent', array($params), "Google_Service_Blogger_Comment"); 1189 } 1190 } 1191 1192 /** 1193 * The "pageViews" collection of methods. 1194 * Typical usage is: 1195 * <code> 1196 * $bloggerService = new Google_Service_Blogger(...); 1197 * $pageViews = $bloggerService->pageViews; 1198 * </code> 1199 */ 1200 #[AllowDynamicProperties] 1201 class Google_Service_Blogger_PageViews_Resource extends Google_Service_Resource 1202 { 1203 1204 /** 1205 * Retrieve pageview stats for a Blog. (pageViews.get) 1206 * 1207 * @param string $blogId The ID of the blog to get. 1208 * @param array $optParams Optional parameters. 1209 * 1210 * @opt_param string range 1211 * @return Google_Service_Blogger_Pageviews 1212 */ 1213 public function get($blogId, $optParams = array()) 1214 { 1215 $params = array('blogId' => $blogId); 1216 $params = array_merge($params, $optParams); 1217 return $this->call('get', array($params), "Google_Service_Blogger_Pageviews"); 1218 } 1219 } 1220 1221 /** 1222 * The "pages" collection of methods. 1223 * Typical usage is: 1224 * <code> 1225 * $bloggerService = new Google_Service_Blogger(...); 1226 * $pages = $bloggerService->pages; 1227 * </code> 1228 */ 1229 #[AllowDynamicProperties] 1230 class Google_Service_Blogger_Pages_Resource extends Google_Service_Resource 1231 { 1232 1233 /** 1234 * Delete a page by ID. (pages.delete) 1235 * 1236 * @param string $blogId The ID of the Blog. 1237 * @param string $pageId The ID of the Page. 1238 * @param array $optParams Optional parameters. 1239 */ 1240 public function delete($blogId, $pageId, $optParams = array()) 1241 { 1242 $params = array('blogId' => $blogId, 'pageId' => $pageId); 1243 $params = array_merge($params, $optParams); 1244 return $this->call('delete', array($params)); 1245 } 1246 1247 /** 1248 * Gets one blog page by ID. (pages.get) 1249 * 1250 * @param string $blogId ID of the blog containing the page. 1251 * @param string $pageId The ID of the page to get. 1252 * @param array $optParams Optional parameters. 1253 * 1254 * @opt_param string view 1255 * @return Google_Service_Blogger_Page 1256 */ 1257 public function get($blogId, $pageId, $optParams = array()) 1258 { 1259 $params = array('blogId' => $blogId, 'pageId' => $pageId); 1260 $params = array_merge($params, $optParams); 1261 return $this->call('get', array($params), "Google_Service_Blogger_Page"); 1262 } 1263 1264 /** 1265 * Add a page. (pages.insert) 1266 * 1267 * @param string $blogId ID of the blog to add the page to. 1268 * @param Google_Page $postBody 1269 * @param array $optParams Optional parameters. 1270 * 1271 * @opt_param bool isDraft Whether to create the page as a draft (default: 1272 * false). 1273 * @return Google_Service_Blogger_Page 1274 */ 1275 public function insert($blogId, Google_Service_Blogger_Page $postBody, $optParams = array()) 1276 { 1277 $params = array('blogId' => $blogId, 'postBody' => $postBody); 1278 $params = array_merge($params, $optParams); 1279 return $this->call('insert', array($params), "Google_Service_Blogger_Page"); 1280 } 1281 1282 /** 1283 * Retrieves the pages for a blog, optionally including non-LIVE statuses. 1284 * (pages.listPages) 1285 * 1286 * @param string $blogId ID of the blog to fetch Pages from. 1287 * @param array $optParams Optional parameters. 1288 * 1289 * @opt_param string status 1290 * @opt_param string maxResults Maximum number of Pages to fetch. 1291 * @opt_param string pageToken Continuation token if the request is paged. 1292 * @opt_param bool fetchBodies Whether to retrieve the Page bodies. 1293 * @opt_param string view Access level with which to view the returned result. 1294 * Note that some fields require elevated access. 1295 * @return Google_Service_Blogger_PageList 1296 */ 1297 public function listPages($blogId, $optParams = array()) 1298 { 1299 $params = array('blogId' => $blogId); 1300 $params = array_merge($params, $optParams); 1301 return $this->call('list', array($params), "Google_Service_Blogger_PageList"); 1302 } 1303 1304 /** 1305 * Update a page. This method supports patch semantics. (pages.patch) 1306 * 1307 * @param string $blogId The ID of the Blog. 1308 * @param string $pageId The ID of the Page. 1309 * @param Google_Page $postBody 1310 * @param array $optParams Optional parameters. 1311 * 1312 * @opt_param bool revert Whether a revert action should be performed when the 1313 * page is updated (default: false). 1314 * @opt_param bool publish Whether a publish action should be performed when the 1315 * page is updated (default: false). 1316 * @return Google_Service_Blogger_Page 1317 */ 1318 public function patch($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array()) 1319 { 1320 $params = array('blogId' => $blogId, 'pageId' => $pageId, 'postBody' => $postBody); 1321 $params = array_merge($params, $optParams); 1322 return $this->call('patch', array($params), "Google_Service_Blogger_Page"); 1323 } 1324 1325 /** 1326 * Publishes a draft page. (pages.publish) 1327 * 1328 * @param string $blogId The ID of the blog. 1329 * @param string $pageId The ID of the page. 1330 * @param array $optParams Optional parameters. 1331 * @return Google_Service_Blogger_Page 1332 */ 1333 public function publish($blogId, $pageId, $optParams = array()) 1334 { 1335 $params = array('blogId' => $blogId, 'pageId' => $pageId); 1336 $params = array_merge($params, $optParams); 1337 return $this->call('publish', array($params), "Google_Service_Blogger_Page"); 1338 } 1339 1340 /** 1341 * Revert a published or scheduled page to draft state. (pages.revert) 1342 * 1343 * @param string $blogId The ID of the blog. 1344 * @param string $pageId The ID of the page. 1345 * @param array $optParams Optional parameters. 1346 * @return Google_Service_Blogger_Page 1347 */ 1348 public function revert($blogId, $pageId, $optParams = array()) 1349 { 1350 $params = array('blogId' => $blogId, 'pageId' => $pageId); 1351 $params = array_merge($params, $optParams); 1352 return $this->call('revert', array($params), "Google_Service_Blogger_Page"); 1353 } 1354 1355 /** 1356 * Update a page. (pages.update) 1357 * 1358 * @param string $blogId The ID of the Blog. 1359 * @param string $pageId The ID of the Page. 1360 * @param Google_Page $postBody 1361 * @param array $optParams Optional parameters. 1362 * 1363 * @opt_param bool revert Whether a revert action should be performed when the 1364 * page is updated (default: false). 1365 * @opt_param bool publish Whether a publish action should be performed when the 1366 * page is updated (default: false). 1367 * @return Google_Service_Blogger_Page 1368 */ 1369 public function update($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array()) 1370 { 1371 $params = array('blogId' => $blogId, 'pageId' => $pageId, 'postBody' => $postBody); 1372 $params = array_merge($params, $optParams); 1373 return $this->call('update', array($params), "Google_Service_Blogger_Page"); 1374 } 1375 } 1376 1377 /** 1378 * The "postUserInfos" collection of methods. 1379 * Typical usage is: 1380 * <code> 1381 * $bloggerService = new Google_Service_Blogger(...); 1382 * $postUserInfos = $bloggerService->postUserInfos; 1383 * </code> 1384 */ 1385 #[AllowDynamicProperties] 1386 class Google_Service_Blogger_PostUserInfos_Resource extends Google_Service_Resource 1387 { 1388 1389 /** 1390 * Gets one post and user info pair, by post ID and user ID. The post user info 1391 * contains per-user information about the post, such as access rights, specific 1392 * to the user. (postUserInfos.get) 1393 * 1394 * @param string $userId ID of the user for the per-user information to be 1395 * fetched. Either the word 'self' (sans quote marks) or the user's profile 1396 * identifier. 1397 * @param string $blogId The ID of the blog. 1398 * @param string $postId The ID of the post to get. 1399 * @param array $optParams Optional parameters. 1400 * 1401 * @opt_param string maxComments Maximum number of comments to pull back on a 1402 * post. 1403 * @return Google_Service_Blogger_PostUserInfo 1404 */ 1405 public function get($userId, $blogId, $postId, $optParams = array()) 1406 { 1407 $params = array('userId' => $userId, 'blogId' => $blogId, 'postId' => $postId); 1408 $params = array_merge($params, $optParams); 1409 return $this->call('get', array($params), "Google_Service_Blogger_PostUserInfo"); 1410 } 1411 1412 /** 1413 * Retrieves a list of post and post user info pairs, possibly filtered. The 1414 * post user info contains per-user information about the post, such as access 1415 * rights, specific to the user. (postUserInfos.listPostUserInfos) 1416 * 1417 * @param string $userId ID of the user for the per-user information to be 1418 * fetched. Either the word 'self' (sans quote marks) or the user's profile 1419 * identifier. 1420 * @param string $blogId ID of the blog to fetch posts from. 1421 * @param array $optParams Optional parameters. 1422 * 1423 * @opt_param string orderBy Sort order applied to search results. Default is 1424 * published. 1425 * @opt_param string startDate Earliest post date to fetch, a date-time with RFC 1426 * 3339 formatting. 1427 * @opt_param string endDate Latest post date to fetch, a date-time with RFC 1428 * 3339 formatting. 1429 * @opt_param string labels Comma-separated list of labels to search for. 1430 * @opt_param string maxResults Maximum number of posts to fetch. 1431 * @opt_param string pageToken Continuation token if the request is paged. 1432 * @opt_param string status 1433 * @opt_param bool fetchBodies Whether the body content of posts is included. 1434 * Default is false. 1435 * @opt_param string view Access level with which to view the returned result. 1436 * Note that some fields require elevated access. 1437 * @return Google_Service_Blogger_PostUserInfosList 1438 */ 1439 public function listPostUserInfos($userId, $blogId, $optParams = array()) 1440 { 1441 $params = array('userId' => $userId, 'blogId' => $blogId); 1442 $params = array_merge($params, $optParams); 1443 return $this->call('list', array($params), "Google_Service_Blogger_PostUserInfosList"); 1444 } 1445 } 1446 1447 /** 1448 * The "posts" collection of methods. 1449 * Typical usage is: 1450 * <code> 1451 * $bloggerService = new Google_Service_Blogger(...); 1452 * $posts = $bloggerService->posts; 1453 * </code> 1454 */ 1455 #[AllowDynamicProperties] 1456 class Google_Service_Blogger_Posts_Resource extends Google_Service_Resource 1457 { 1458 1459 /** 1460 * Delete a post by ID. (posts.delete) 1461 * 1462 * @param string $blogId The ID of the Blog. 1463 * @param string $postId The ID of the Post. 1464 * @param array $optParams Optional parameters. 1465 */ 1466 public function delete($blogId, $postId, $optParams = array()) 1467 { 1468 $params = array('blogId' => $blogId, 'postId' => $postId); 1469 $params = array_merge($params, $optParams); 1470 return $this->call('delete', array($params)); 1471 } 1472 1473 /** 1474 * Get a post by ID. (posts.get) 1475 * 1476 * @param string $blogId ID of the blog to fetch the post from. 1477 * @param string $postId The ID of the post 1478 * @param array $optParams Optional parameters. 1479 * 1480 * @opt_param bool fetchBody Whether the body content of the post is included 1481 * (default: true). This should be set to false when the post bodies are not 1482 * required, to help minimize traffic. 1483 * @opt_param string maxComments Maximum number of comments to pull back on a 1484 * post. 1485 * @opt_param bool fetchImages Whether image URL metadata for each post is 1486 * included (default: false). 1487 * @opt_param string view Access level with which to view the returned result. 1488 * Note that some fields require elevated access. 1489 * @return Google_Service_Blogger_Post 1490 */ 1491 public function get($blogId, $postId, $optParams = array()) 1492 { 1493 $params = array('blogId' => $blogId, 'postId' => $postId); 1494 $params = array_merge($params, $optParams); 1495 return $this->call('get', array($params), "Google_Service_Blogger_Post"); 1496 } 1497 1498 /** 1499 * Retrieve a Post by Path. (posts.getByPath) 1500 * 1501 * @param string $blogId ID of the blog to fetch the post from. 1502 * @param string $path Path of the Post to retrieve. 1503 * @param array $optParams Optional parameters. 1504 * 1505 * @opt_param string maxComments Maximum number of comments to pull back on a 1506 * post. 1507 * @opt_param string view Access level with which to view the returned result. 1508 * Note that some fields require elevated access. 1509 * @return Google_Service_Blogger_Post 1510 */ 1511 public function getByPath($blogId, $path, $optParams = array()) 1512 { 1513 $params = array('blogId' => $blogId, 'path' => $path); 1514 $params = array_merge($params, $optParams); 1515 return $this->call('getByPath', array($params), "Google_Service_Blogger_Post"); 1516 } 1517 1518 /** 1519 * Add a post. (posts.insert) 1520 * 1521 * @param string $blogId ID of the blog to add the post to. 1522 * @param Google_Post $postBody 1523 * @param array $optParams Optional parameters. 1524 * 1525 * @opt_param bool fetchImages Whether image URL metadata for each post is 1526 * included in the returned result (default: false). 1527 * @opt_param bool isDraft Whether to create the post as a draft (default: 1528 * false). 1529 * @opt_param bool fetchBody Whether the body content of the post is included 1530 * with the result (default: true). 1531 * @return Google_Service_Blogger_Post 1532 */ 1533 public function insert($blogId, Google_Service_Blogger_Post $postBody, $optParams = array()) 1534 { 1535 $params = array('blogId' => $blogId, 'postBody' => $postBody); 1536 $params = array_merge($params, $optParams); 1537 return $this->call('insert', array($params), "Google_Service_Blogger_Post"); 1538 } 1539 1540 /** 1541 * Retrieves a list of posts, possibly filtered. (posts.listPosts) 1542 * 1543 * @param string $blogId ID of the blog to fetch posts from. 1544 * @param array $optParams Optional parameters. 1545 * 1546 * @opt_param string orderBy Sort search results 1547 * @opt_param string startDate Earliest post date to fetch, a date-time with RFC 1548 * 3339 formatting. 1549 * @opt_param string endDate Latest post date to fetch, a date-time with RFC 1550 * 3339 formatting. 1551 * @opt_param string labels Comma-separated list of labels to search for. 1552 * @opt_param string maxResults Maximum number of posts to fetch. 1553 * @opt_param bool fetchImages Whether image URL metadata for each post is 1554 * included. 1555 * @opt_param string pageToken Continuation token if the request is paged. 1556 * @opt_param string status Statuses to include in the results. 1557 * @opt_param bool fetchBodies Whether the body content of posts is included 1558 * (default: true). This should be set to false when the post bodies are not 1559 * required, to help minimize traffic. 1560 * @opt_param string view Access level with which to view the returned result. 1561 * Note that some fields require escalated access. 1562 * @return Google_Service_Blogger_PostList 1563 */ 1564 public function listPosts($blogId, $optParams = array()) 1565 { 1566 $params = array('blogId' => $blogId); 1567 $params = array_merge($params, $optParams); 1568 return $this->call('list', array($params), "Google_Service_Blogger_PostList"); 1569 } 1570 1571 /** 1572 * Update a post. This method supports patch semantics. (posts.patch) 1573 * 1574 * @param string $blogId The ID of the Blog. 1575 * @param string $postId The ID of the Post. 1576 * @param Google_Post $postBody 1577 * @param array $optParams Optional parameters. 1578 * 1579 * @opt_param bool revert Whether a revert action should be performed when the 1580 * post is updated (default: false). 1581 * @opt_param bool publish Whether a publish action should be performed when the 1582 * post is updated (default: false). 1583 * @opt_param bool fetchBody Whether the body content of the post is included 1584 * with the result (default: true). 1585 * @opt_param string maxComments Maximum number of comments to retrieve with the 1586 * returned post. 1587 * @opt_param bool fetchImages Whether image URL metadata for each post is 1588 * included in the returned result (default: false). 1589 * @return Google_Service_Blogger_Post 1590 */ 1591 public function patch($blogId, $postId, Google_Service_Blogger_Post $postBody, $optParams = array()) 1592 { 1593 $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody); 1594 $params = array_merge($params, $optParams); 1595 return $this->call('patch', array($params), "Google_Service_Blogger_Post"); 1596 } 1597 1598 /** 1599 * Publishes a draft post, optionally at the specific time of the given 1600 * publishDate parameter. (posts.publish) 1601 * 1602 * @param string $blogId The ID of the Blog. 1603 * @param string $postId The ID of the Post. 1604 * @param array $optParams Optional parameters. 1605 * 1606 * @opt_param string publishDate Optional date and time to schedule the 1607 * publishing of the Blog. If no publishDate parameter is given, the post is 1608 * either published at the a previously saved schedule date (if present), or the 1609 * current time. If a future date is given, the post will be scheduled to be 1610 * published. 1611 * @return Google_Service_Blogger_Post 1612 */ 1613 public function publish($blogId, $postId, $optParams = array()) 1614 { 1615 $params = array('blogId' => $blogId, 'postId' => $postId); 1616 $params = array_merge($params, $optParams); 1617 return $this->call('publish', array($params), "Google_Service_Blogger_Post"); 1618 } 1619 1620 /** 1621 * Revert a published or scheduled post to draft state. (posts.revert) 1622 * 1623 * @param string $blogId The ID of the Blog. 1624 * @param string $postId The ID of the Post. 1625 * @param array $optParams Optional parameters. 1626 * @return Google_Service_Blogger_Post 1627 */ 1628 public function revert($blogId, $postId, $optParams = array()) 1629 { 1630 $params = array('blogId' => $blogId, 'postId' => $postId); 1631 $params = array_merge($params, $optParams); 1632 return $this->call('revert', array($params), "Google_Service_Blogger_Post"); 1633 } 1634 1635 /** 1636 * Search for a post. (posts.search) 1637 * 1638 * @param string $blogId ID of the blog to fetch the post from. 1639 * @param string $q Query terms to search this blog for matching posts. 1640 * @param array $optParams Optional parameters. 1641 * 1642 * @opt_param string orderBy Sort search results 1643 * @opt_param bool fetchBodies Whether the body content of posts is included 1644 * (default: true). This should be set to false when the post bodies are not 1645 * required, to help minimize traffic. 1646 * @return Google_Service_Blogger_PostList 1647 */ 1648 public function search($blogId, $q, $optParams = array()) 1649 { 1650 $params = array('blogId' => $blogId, 'q' => $q); 1651 $params = array_merge($params, $optParams); 1652 return $this->call('search', array($params), "Google_Service_Blogger_PostList"); 1653 } 1654 1655 /** 1656 * Update a post. (posts.update) 1657 * 1658 * @param string $blogId The ID of the Blog. 1659 * @param string $postId The ID of the Post. 1660 * @param Google_Post $postBody 1661 * @param array $optParams Optional parameters. 1662 * 1663 * @opt_param bool revert Whether a revert action should be performed when the 1664 * post is updated (default: false). 1665 * @opt_param bool publish Whether a publish action should be performed when the 1666 * post is updated (default: false). 1667 * @opt_param bool fetchBody Whether the body content of the post is included 1668 * with the result (default: true). 1669 * @opt_param string maxComments Maximum number of comments to retrieve with the 1670 * returned post. 1671 * @opt_param bool fetchImages Whether image URL metadata for each post is 1672 * included in the returned result (default: false). 1673 * @return Google_Service_Blogger_Post 1674 */ 1675 public function update($blogId, $postId, Google_Service_Blogger_Post $postBody, $optParams = array()) 1676 { 1677 $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody); 1678 $params = array_merge($params, $optParams); 1679 return $this->call('update', array($params), "Google_Service_Blogger_Post"); 1680 } 1681 } 1682 1683 /** 1684 * The "users" collection of methods. 1685 * Typical usage is: 1686 * <code> 1687 * $bloggerService = new Google_Service_Blogger(...); 1688 * $users = $bloggerService->users; 1689 * </code> 1690 */ 1691 #[AllowDynamicProperties] 1692 class Google_Service_Blogger_Users_Resource extends Google_Service_Resource 1693 { 1694 1695 /** 1696 * Gets one user by ID. (users.get) 1697 * 1698 * @param string $userId The ID of the user to get. 1699 * @param array $optParams Optional parameters. 1700 * @return Google_Service_Blogger_User 1701 */ 1702 public function get($userId, $optParams = array()) 1703 { 1704 $params = array('userId' => $userId); 1705 $params = array_merge($params, $optParams); 1706 return $this->call('get', array($params), "Google_Service_Blogger_User"); 1707 } 1708 } 1709 1710 1711 1712 1713 #[AllowDynamicProperties] 1714 class Google_Service_Blogger_Blog extends Google_Model 1715 { 1716 protected $internal_gapi_mappings = array( 1717 ); 1718 public $customMetaData; 1719 public $description; 1720 public $id; 1721 public $kind; 1722 protected $localeType = 'Google_Service_Blogger_BlogLocale'; 1723 protected $localeDataType = ''; 1724 public $name; 1725 protected $pagesType = 'Google_Service_Blogger_BlogPages'; 1726 protected $pagesDataType = ''; 1727 protected $postsType = 'Google_Service_Blogger_BlogPosts'; 1728 protected $postsDataType = ''; 1729 public $published; 1730 public $selfLink; 1731 public $status; 1732 public $updated; 1733 public $url; 1734 1735 1736 public function setCustomMetaData($customMetaData) 1737 { 1738 $this->customMetaData = $customMetaData; 1739 } 1740 public function getCustomMetaData() 1741 { 1742 return $this->customMetaData; 1743 } 1744 public function setDescription($description) 1745 { 1746 $this->description = $description; 1747 } 1748 public function getDescription() 1749 { 1750 return $this->description; 1751 } 1752 public function setId($id) 1753 { 1754 $this->id = $id; 1755 } 1756 public function getId() 1757 { 1758 return $this->id; 1759 } 1760 public function setKind($kind) 1761 { 1762 $this->kind = $kind; 1763 } 1764 public function getKind() 1765 { 1766 return $this->kind; 1767 } 1768 public function setLocale(Google_Service_Blogger_BlogLocale $locale) 1769 { 1770 $this->locale = $locale; 1771 } 1772 public function getLocale() 1773 { 1774 return $this->locale; 1775 } 1776 public function setName($name) 1777 { 1778 $this->name = $name; 1779 } 1780 public function getName() 1781 { 1782 return $this->name; 1783 } 1784 public function setPages(Google_Service_Blogger_BlogPages $pages) 1785 { 1786 $this->pages = $pages; 1787 } 1788 public function getPages() 1789 { 1790 return $this->pages; 1791 } 1792 public function setPosts(Google_Service_Blogger_BlogPosts $posts) 1793 { 1794 $this->posts = $posts; 1795 } 1796 public function getPosts() 1797 { 1798 return $this->posts; 1799 } 1800 public function setPublished($published) 1801 { 1802 $this->published = $published; 1803 } 1804 public function getPublished() 1805 { 1806 return $this->published; 1807 } 1808 public function setSelfLink($selfLink) 1809 { 1810 $this->selfLink = $selfLink; 1811 } 1812 public function getSelfLink() 1813 { 1814 return $this->selfLink; 1815 } 1816 public function setStatus($status) 1817 { 1818 $this->status = $status; 1819 } 1820 public function getStatus() 1821 { 1822 return $this->status; 1823 } 1824 public function setUpdated($updated) 1825 { 1826 $this->updated = $updated; 1827 } 1828 public function getUpdated() 1829 { 1830 return $this->updated; 1831 } 1832 public function setUrl($url) 1833 { 1834 $this->url = $url; 1835 } 1836 public function getUrl() 1837 { 1838 return $this->url; 1839 } 1840 } 1841 1842 #[AllowDynamicProperties] 1843 class Google_Service_Blogger_BlogList extends Google_Collection 1844 { 1845 protected $collection_key = 'items'; 1846 protected $internal_gapi_mappings = array( 1847 ); 1848 protected $blogUserInfosType = 'Google_Service_Blogger_BlogUserInfo'; 1849 protected $blogUserInfosDataType = 'array'; 1850 protected $itemsType = 'Google_Service_Blogger_Blog'; 1851 protected $itemsDataType = 'array'; 1852 public $kind; 1853 1854 1855 public function setBlogUserInfos($blogUserInfos) 1856 { 1857 $this->blogUserInfos = $blogUserInfos; 1858 } 1859 public function getBlogUserInfos() 1860 { 1861 return $this->blogUserInfos; 1862 } 1863 public function setItems($items) 1864 { 1865 $this->items = $items; 1866 } 1867 public function getItems() 1868 { 1869 return $this->items; 1870 } 1871 public function setKind($kind) 1872 { 1873 $this->kind = $kind; 1874 } 1875 public function getKind() 1876 { 1877 return $this->kind; 1878 } 1879 } 1880 1881 #[AllowDynamicProperties] 1882 class Google_Service_Blogger_BlogLocale extends Google_Model 1883 { 1884 protected $internal_gapi_mappings = array( 1885 ); 1886 public $country; 1887 public $language; 1888 public $variant; 1889 1890 1891 public function setCountry($country) 1892 { 1893 $this->country = $country; 1894 } 1895 public function getCountry() 1896 { 1897 return $this->country; 1898 } 1899 public function setLanguage($language) 1900 { 1901 $this->language = $language; 1902 } 1903 public function getLanguage() 1904 { 1905 return $this->language; 1906 } 1907 public function setVariant($variant) 1908 { 1909 $this->variant = $variant; 1910 } 1911 public function getVariant() 1912 { 1913 return $this->variant; 1914 } 1915 } 1916 1917 #[AllowDynamicProperties] 1918 class Google_Service_Blogger_BlogPages extends Google_Model 1919 { 1920 protected $internal_gapi_mappings = array( 1921 ); 1922 public $selfLink; 1923 public $totalItems; 1924 1925 1926 public function setSelfLink($selfLink) 1927 { 1928 $this->selfLink = $selfLink; 1929 } 1930 public function getSelfLink() 1931 { 1932 return $this->selfLink; 1933 } 1934 public function setTotalItems($totalItems) 1935 { 1936 $this->totalItems = $totalItems; 1937 } 1938 public function getTotalItems() 1939 { 1940 return $this->totalItems; 1941 } 1942 } 1943 1944 #[AllowDynamicProperties] 1945 class Google_Service_Blogger_BlogPerUserInfo extends Google_Model 1946 { 1947 protected $internal_gapi_mappings = array( 1948 ); 1949 public $blogId; 1950 public $hasAdminAccess; 1951 public $kind; 1952 public $photosAlbumKey; 1953 public $role; 1954 public $userId; 1955 1956 1957 public function setBlogId($blogId) 1958 { 1959 $this->blogId = $blogId; 1960 } 1961 public function getBlogId() 1962 { 1963 return $this->blogId; 1964 } 1965 public function setHasAdminAccess($hasAdminAccess) 1966 { 1967 $this->hasAdminAccess = $hasAdminAccess; 1968 } 1969 public function getHasAdminAccess() 1970 { 1971 return $this->hasAdminAccess; 1972 } 1973 public function setKind($kind) 1974 { 1975 $this->kind = $kind; 1976 } 1977 public function getKind() 1978 { 1979 return $this->kind; 1980 } 1981 public function setPhotosAlbumKey($photosAlbumKey) 1982 { 1983 $this->photosAlbumKey = $photosAlbumKey; 1984 } 1985 public function getPhotosAlbumKey() 1986 { 1987 return $this->photosAlbumKey; 1988 } 1989 public function setRole($role) 1990 { 1991 $this->role = $role; 1992 } 1993 public function getRole() 1994 { 1995 return $this->role; 1996 } 1997 public function setUserId($userId) 1998 { 1999 $this->userId = $userId; 2000 } 2001 public function getUserId() 2002 { 2003 return $this->userId; 2004 } 2005 } 2006 2007 #[AllowDynamicProperties] 2008 class Google_Service_Blogger_BlogPosts extends Google_Collection 2009 { 2010 protected $collection_key = 'items'; 2011 protected $internal_gapi_mappings = array( 2012 ); 2013 protected $itemsType = 'Google_Service_Blogger_Post'; 2014 protected $itemsDataType = 'array'; 2015 public $selfLink; 2016 public $totalItems; 2017 2018 2019 public function setItems($items) 2020 { 2021 $this->items = $items; 2022 } 2023 public function getItems() 2024 { 2025 return $this->items; 2026 } 2027 public function setSelfLink($selfLink) 2028 { 2029 $this->selfLink = $selfLink; 2030 } 2031 public function getSelfLink() 2032 { 2033 return $this->selfLink; 2034 } 2035 public function setTotalItems($totalItems) 2036 { 2037 $this->totalItems = $totalItems; 2038 } 2039 public function getTotalItems() 2040 { 2041 return $this->totalItems; 2042 } 2043 } 2044 2045 #[AllowDynamicProperties] 2046 class Google_Service_Blogger_BlogUserInfo extends Google_Model 2047 { 2048 protected $internal_gapi_mappings = array( 2049 "blogUserInfo" => "blog_user_info", 2050 ); 2051 protected $blogType = 'Google_Service_Blogger_Blog'; 2052 protected $blogDataType = ''; 2053 protected $blogUserInfoType = 'Google_Service_Blogger_BlogPerUserInfo'; 2054 protected $blogUserInfoDataType = ''; 2055 public $kind; 2056 2057 2058 public function setBlog(Google_Service_Blogger_Blog $blog) 2059 { 2060 $this->blog = $blog; 2061 } 2062 public function getBlog() 2063 { 2064 return $this->blog; 2065 } 2066 public function setBlogUserInfo(Google_Service_Blogger_BlogPerUserInfo $blogUserInfo) 2067 { 2068 $this->blogUserInfo = $blogUserInfo; 2069 } 2070 public function getBlogUserInfo() 2071 { 2072 return $this->blogUserInfo; 2073 } 2074 public function setKind($kind) 2075 { 2076 $this->kind = $kind; 2077 } 2078 public function getKind() 2079 { 2080 return $this->kind; 2081 } 2082 } 2083 2084 #[AllowDynamicProperties] 2085 class Google_Service_Blogger_Comment extends Google_Model 2086 { 2087 protected $internal_gapi_mappings = array( 2088 ); 2089 protected $authorType = 'Google_Service_Blogger_CommentAuthor'; 2090 protected $authorDataType = ''; 2091 protected $blogType = 'Google_Service_Blogger_CommentBlog'; 2092 protected $blogDataType = ''; 2093 public $content; 2094 public $id; 2095 protected $inReplyToType = 'Google_Service_Blogger_CommentInReplyTo'; 2096 protected $inReplyToDataType = ''; 2097 public $kind; 2098 protected $postType = 'Google_Service_Blogger_CommentPost'; 2099 protected $postDataType = ''; 2100 public $published; 2101 public $selfLink; 2102 public $status; 2103 public $updated; 2104 2105 2106 public function setAuthor(Google_Service_Blogger_CommentAuthor $author) 2107 { 2108 $this->author = $author; 2109 } 2110 public function getAuthor() 2111 { 2112 return $this->author; 2113 } 2114 public function setBlog(Google_Service_Blogger_CommentBlog $blog) 2115 { 2116 $this->blog = $blog; 2117 } 2118 public function getBlog() 2119 { 2120 return $this->blog; 2121 } 2122 public function setContent($content) 2123 { 2124 $this->content = $content; 2125 } 2126 public function getContent() 2127 { 2128 return $this->content; 2129 } 2130 public function setId($id) 2131 { 2132 $this->id = $id; 2133 } 2134 public function getId() 2135 { 2136 return $this->id; 2137 } 2138 public function setInReplyTo(Google_Service_Blogger_CommentInReplyTo $inReplyTo) 2139 { 2140 $this->inReplyTo = $inReplyTo; 2141 } 2142 public function getInReplyTo() 2143 { 2144 return $this->inReplyTo; 2145 } 2146 public function setKind($kind) 2147 { 2148 $this->kind = $kind; 2149 } 2150 public function getKind() 2151 { 2152 return $this->kind; 2153 } 2154 public function setPost(Google_Service_Blogger_CommentPost $post) 2155 { 2156 $this->post = $post; 2157 } 2158 public function getPost() 2159 { 2160 return $this->post; 2161 } 2162 public function setPublished($published) 2163 { 2164 $this->published = $published; 2165 } 2166 public function getPublished() 2167 { 2168 return $this->published; 2169 } 2170 public function setSelfLink($selfLink) 2171 { 2172 $this->selfLink = $selfLink; 2173 } 2174 public function getSelfLink() 2175 { 2176 return $this->selfLink; 2177 } 2178 public function setStatus($status) 2179 { 2180 $this->status = $status; 2181 } 2182 public function getStatus() 2183 { 2184 return $this->status; 2185 } 2186 public function setUpdated($updated) 2187 { 2188 $this->updated = $updated; 2189 } 2190 public function getUpdated() 2191 { 2192 return $this->updated; 2193 } 2194 } 2195 2196 #[AllowDynamicProperties] 2197 class Google_Service_Blogger_CommentAuthor extends Google_Model 2198 { 2199 protected $internal_gapi_mappings = array( 2200 ); 2201 public $displayName; 2202 public $id; 2203 protected $imageType = 'Google_Service_Blogger_CommentAuthorImage'; 2204 protected $imageDataType = ''; 2205 public $url; 2206 2207 2208 public function setDisplayName($displayName) 2209 { 2210 $this->displayName = $displayName; 2211 } 2212 public function getDisplayName() 2213 { 2214 return $this->displayName; 2215 } 2216 public function setId($id) 2217 { 2218 $this->id = $id; 2219 } 2220 public function getId() 2221 { 2222 return $this->id; 2223 } 2224 public function setImage(Google_Service_Blogger_CommentAuthorImage $image) 2225 { 2226 $this->image = $image; 2227 } 2228 public function getImage() 2229 { 2230 return $this->image; 2231 } 2232 public function setUrl($url) 2233 { 2234 $this->url = $url; 2235 } 2236 public function getUrl() 2237 { 2238 return $this->url; 2239 } 2240 } 2241 2242 #[AllowDynamicProperties] 2243 class Google_Service_Blogger_CommentAuthorImage extends Google_Model 2244 { 2245 protected $internal_gapi_mappings = array( 2246 ); 2247 public $url; 2248 2249 2250 public function setUrl($url) 2251 { 2252 $this->url = $url; 2253 } 2254 public function getUrl() 2255 { 2256 return $this->url; 2257 } 2258 } 2259 2260 #[AllowDynamicProperties] 2261 class Google_Service_Blogger_CommentBlog extends Google_Model 2262 { 2263 protected $internal_gapi_mappings = array( 2264 ); 2265 public $id; 2266 2267 2268 public function setId($id) 2269 { 2270 $this->id = $id; 2271 } 2272 public function getId() 2273 { 2274 return $this->id; 2275 } 2276 } 2277 2278 #[AllowDynamicProperties] 2279 class Google_Service_Blogger_CommentInReplyTo extends Google_Model 2280 { 2281 protected $internal_gapi_mappings = array( 2282 ); 2283 public $id; 2284 2285 2286 public function setId($id) 2287 { 2288 $this->id = $id; 2289 } 2290 public function getId() 2291 { 2292 return $this->id; 2293 } 2294 } 2295 2296 #[AllowDynamicProperties] 2297 class Google_Service_Blogger_CommentList extends Google_Collection 2298 { 2299 protected $collection_key = 'items'; 2300 protected $internal_gapi_mappings = array( 2301 ); 2302 public $etag; 2303 protected $itemsType = 'Google_Service_Blogger_Comment'; 2304 protected $itemsDataType = 'array'; 2305 public $kind; 2306 public $nextPageToken; 2307 public $prevPageToken; 2308 2309 2310 public function setEtag($etag) 2311 { 2312 $this->etag = $etag; 2313 } 2314 public function getEtag() 2315 { 2316 return $this->etag; 2317 } 2318 public function setItems($items) 2319 { 2320 $this->items = $items; 2321 } 2322 public function getItems() 2323 { 2324 return $this->items; 2325 } 2326 public function setKind($kind) 2327 { 2328 $this->kind = $kind; 2329 } 2330 public function getKind() 2331 { 2332 return $this->kind; 2333 } 2334 public function setNextPageToken($nextPageToken) 2335 { 2336 $this->nextPageToken = $nextPageToken; 2337 } 2338 public function getNextPageToken() 2339 { 2340 return $this->nextPageToken; 2341 } 2342 public function setPrevPageToken($prevPageToken) 2343 { 2344 $this->prevPageToken = $prevPageToken; 2345 } 2346 public function getPrevPageToken() 2347 { 2348 return $this->prevPageToken; 2349 } 2350 } 2351 2352 #[AllowDynamicProperties] 2353 class Google_Service_Blogger_CommentPost extends Google_Model 2354 { 2355 protected $internal_gapi_mappings = array( 2356 ); 2357 public $id; 2358 2359 2360 public function setId($id) 2361 { 2362 $this->id = $id; 2363 } 2364 public function getId() 2365 { 2366 return $this->id; 2367 } 2368 } 2369 2370 #[AllowDynamicProperties] 2371 class Google_Service_Blogger_Page extends Google_Model 2372 { 2373 protected $internal_gapi_mappings = array( 2374 ); 2375 protected $authorType = 'Google_Service_Blogger_PageAuthor'; 2376 protected $authorDataType = ''; 2377 protected $blogType = 'Google_Service_Blogger_PageBlog'; 2378 protected $blogDataType = ''; 2379 public $content; 2380 public $etag; 2381 public $id; 2382 public $kind; 2383 public $published; 2384 public $selfLink; 2385 public $status; 2386 public $title; 2387 public $updated; 2388 public $url; 2389 2390 2391 public function setAuthor(Google_Service_Blogger_PageAuthor $author) 2392 { 2393 $this->author = $author; 2394 } 2395 public function getAuthor() 2396 { 2397 return $this->author; 2398 } 2399 public function setBlog(Google_Service_Blogger_PageBlog $blog) 2400 { 2401 $this->blog = $blog; 2402 } 2403 public function getBlog() 2404 { 2405 return $this->blog; 2406 } 2407 public function setContent($content) 2408 { 2409 $this->content = $content; 2410 } 2411 public function getContent() 2412 { 2413 return $this->content; 2414 } 2415 public function setEtag($etag) 2416 { 2417 $this->etag = $etag; 2418 } 2419 public function getEtag() 2420 { 2421 return $this->etag; 2422 } 2423 public function setId($id) 2424 { 2425 $this->id = $id; 2426 } 2427 public function getId() 2428 { 2429 return $this->id; 2430 } 2431 public function setKind($kind) 2432 { 2433 $this->kind = $kind; 2434 } 2435 public function getKind() 2436 { 2437 return $this->kind; 2438 } 2439 public function setPublished($published) 2440 { 2441 $this->published = $published; 2442 } 2443 public function getPublished() 2444 { 2445 return $this->published; 2446 } 2447 public function setSelfLink($selfLink) 2448 { 2449 $this->selfLink = $selfLink; 2450 } 2451 public function getSelfLink() 2452 { 2453 return $this->selfLink; 2454 } 2455 public function setStatus($status) 2456 { 2457 $this->status = $status; 2458 } 2459 public function getStatus() 2460 { 2461 return $this->status; 2462 } 2463 public function setTitle($title) 2464 { 2465 $this->title = $title; 2466 } 2467 public function getTitle() 2468 { 2469 return $this->title; 2470 } 2471 public function setUpdated($updated) 2472 { 2473 $this->updated = $updated; 2474 } 2475 public function getUpdated() 2476 { 2477 return $this->updated; 2478 } 2479 public function setUrl($url) 2480 { 2481 $this->url = $url; 2482 } 2483 public function getUrl() 2484 { 2485 return $this->url; 2486 } 2487 } 2488 2489 #[AllowDynamicProperties] 2490 class Google_Service_Blogger_PageAuthor extends Google_Model 2491 { 2492 protected $internal_gapi_mappings = array( 2493 ); 2494 public $displayName; 2495 public $id; 2496 protected $imageType = 'Google_Service_Blogger_PageAuthorImage'; 2497 protected $imageDataType = ''; 2498 public $url; 2499 2500 2501 public function setDisplayName($displayName) 2502 { 2503 $this->displayName = $displayName; 2504 } 2505 public function getDisplayName() 2506 { 2507 return $this->displayName; 2508 } 2509 public function setId($id) 2510 { 2511 $this->id = $id; 2512 } 2513 public function getId() 2514 { 2515 return $this->id; 2516 } 2517 public function setImage(Google_Service_Blogger_PageAuthorImage $image) 2518 { 2519 $this->image = $image; 2520 } 2521 public function getImage() 2522 { 2523 return $this->image; 2524 } 2525 public function setUrl($url) 2526 { 2527 $this->url = $url; 2528 } 2529 public function getUrl() 2530 { 2531 return $this->url; 2532 } 2533 } 2534 2535 #[AllowDynamicProperties] 2536 class Google_Service_Blogger_PageAuthorImage extends Google_Model 2537 { 2538 protected $internal_gapi_mappings = array( 2539 ); 2540 public $url; 2541 2542 2543 public function setUrl($url) 2544 { 2545 $this->url = $url; 2546 } 2547 public function getUrl() 2548 { 2549 return $this->url; 2550 } 2551 } 2552 2553 #[AllowDynamicProperties] 2554 class Google_Service_Blogger_PageBlog extends Google_Model 2555 { 2556 protected $internal_gapi_mappings = array( 2557 ); 2558 public $id; 2559 2560 2561 public function setId($id) 2562 { 2563 $this->id = $id; 2564 } 2565 public function getId() 2566 { 2567 return $this->id; 2568 } 2569 } 2570 2571 #[AllowDynamicProperties] 2572 class Google_Service_Blogger_PageList extends Google_Collection 2573 { 2574 protected $collection_key = 'items'; 2575 protected $internal_gapi_mappings = array( 2576 ); 2577 public $etag; 2578 protected $itemsType = 'Google_Service_Blogger_Page'; 2579 protected $itemsDataType = 'array'; 2580 public $kind; 2581 public $nextPageToken; 2582 2583 2584 public function setEtag($etag) 2585 { 2586 $this->etag = $etag; 2587 } 2588 public function getEtag() 2589 { 2590 return $this->etag; 2591 } 2592 public function setItems($items) 2593 { 2594 $this->items = $items; 2595 } 2596 public function getItems() 2597 { 2598 return $this->items; 2599 } 2600 public function setKind($kind) 2601 { 2602 $this->kind = $kind; 2603 } 2604 public function getKind() 2605 { 2606 return $this->kind; 2607 } 2608 public function setNextPageToken($nextPageToken) 2609 { 2610 $this->nextPageToken = $nextPageToken; 2611 } 2612 public function getNextPageToken() 2613 { 2614 return $this->nextPageToken; 2615 } 2616 } 2617 2618 #[AllowDynamicProperties] 2619 class Google_Service_Blogger_Pageviews extends Google_Collection 2620 { 2621 protected $collection_key = 'counts'; 2622 protected $internal_gapi_mappings = array( 2623 ); 2624 public $blogId; 2625 protected $countsType = 'Google_Service_Blogger_PageviewsCounts'; 2626 protected $countsDataType = 'array'; 2627 public $kind; 2628 2629 2630 public function setBlogId($blogId) 2631 { 2632 $this->blogId = $blogId; 2633 } 2634 public function getBlogId() 2635 { 2636 return $this->blogId; 2637 } 2638 public function setCounts($counts) 2639 { 2640 $this->counts = $counts; 2641 } 2642 public function getCounts() 2643 { 2644 return $this->counts; 2645 } 2646 public function setKind($kind) 2647 { 2648 $this->kind = $kind; 2649 } 2650 public function getKind() 2651 { 2652 return $this->kind; 2653 } 2654 } 2655 2656 #[AllowDynamicProperties] 2657 class Google_Service_Blogger_PageviewsCounts extends Google_Model 2658 { 2659 protected $internal_gapi_mappings = array( 2660 ); 2661 public $count; 2662 public $timeRange; 2663 2664 2665 public function setCount($count) 2666 { 2667 $this->count = $count; 2668 } 2669 public function getCount() 2670 { 2671 return $this->count; 2672 } 2673 public function setTimeRange($timeRange) 2674 { 2675 $this->timeRange = $timeRange; 2676 } 2677 public function getTimeRange() 2678 { 2679 return $this->timeRange; 2680 } 2681 } 2682 2683 #[AllowDynamicProperties] 2684 class Google_Service_Blogger_Post extends Google_Collection 2685 { 2686 protected $collection_key = 'labels'; 2687 protected $internal_gapi_mappings = array( 2688 ); 2689 protected $authorType = 'Google_Service_Blogger_PostAuthor'; 2690 protected $authorDataType = ''; 2691 protected $blogType = 'Google_Service_Blogger_PostBlog'; 2692 protected $blogDataType = ''; 2693 public $content; 2694 public $customMetaData; 2695 public $etag; 2696 public $id; 2697 protected $imagesType = 'Google_Service_Blogger_PostImages'; 2698 protected $imagesDataType = 'array'; 2699 public $kind; 2700 public $labels; 2701 protected $locationType = 'Google_Service_Blogger_PostLocation'; 2702 protected $locationDataType = ''; 2703 public $published; 2704 public $readerComments; 2705 protected $repliesType = 'Google_Service_Blogger_PostReplies'; 2706 protected $repliesDataType = ''; 2707 public $selfLink; 2708 public $status; 2709 public $title; 2710 public $titleLink; 2711 public $updated; 2712 public $url; 2713 2714 2715 public function setAuthor(Google_Service_Blogger_PostAuthor $author) 2716 { 2717 $this->author = $author; 2718 } 2719 public function getAuthor() 2720 { 2721 return $this->author; 2722 } 2723 public function setBlog(Google_Service_Blogger_PostBlog $blog) 2724 { 2725 $this->blog = $blog; 2726 } 2727 public function getBlog() 2728 { 2729 return $this->blog; 2730 } 2731 public function setContent($content) 2732 { 2733 $this->content = $content; 2734 } 2735 public function getContent() 2736 { 2737 return $this->content; 2738 } 2739 public function setCustomMetaData($customMetaData) 2740 { 2741 $this->customMetaData = $customMetaData; 2742 } 2743 public function getCustomMetaData() 2744 { 2745 return $this->customMetaData; 2746 } 2747 public function setEtag($etag) 2748 { 2749 $this->etag = $etag; 2750 } 2751 public function getEtag() 2752 { 2753 return $this->etag; 2754 } 2755 public function setId($id) 2756 { 2757 $this->id = $id; 2758 } 2759 public function getId() 2760 { 2761 return $this->id; 2762 } 2763 public function setImages($images) 2764 { 2765 $this->images = $images; 2766 } 2767 public function getImages() 2768 { 2769 return $this->images; 2770 } 2771 public function setKind($kind) 2772 { 2773 $this->kind = $kind; 2774 } 2775 public function getKind() 2776 { 2777 return $this->kind; 2778 } 2779 public function setLabels($labels) 2780 { 2781 $this->labels = $labels; 2782 } 2783 public function getLabels() 2784 { 2785 return $this->labels; 2786 } 2787 public function setLocation(Google_Service_Blogger_PostLocation $location) 2788 { 2789 $this->location = $location; 2790 } 2791 public function getLocation() 2792 { 2793 return $this->location; 2794 } 2795 public function setPublished($published) 2796 { 2797 $this->published = $published; 2798 } 2799 public function getPublished() 2800 { 2801 return $this->published; 2802 } 2803 public function setReaderComments($readerComments) 2804 { 2805 $this->readerComments = $readerComments; 2806 } 2807 public function getReaderComments() 2808 { 2809 return $this->readerComments; 2810 } 2811 public function setReplies(Google_Service_Blogger_PostReplies $replies) 2812 { 2813 $this->replies = $replies; 2814 } 2815 public function getReplies() 2816 { 2817 return $this->replies; 2818 } 2819 public function setSelfLink($selfLink) 2820 { 2821 $this->selfLink = $selfLink; 2822 } 2823 public function getSelfLink() 2824 { 2825 return $this->selfLink; 2826 } 2827 public function setStatus($status) 2828 { 2829 $this->status = $status; 2830 } 2831 public function getStatus() 2832 { 2833 return $this->status; 2834 } 2835 public function setTitle($title) 2836 { 2837 $this->title = $title; 2838 } 2839 public function getTitle() 2840 { 2841 return $this->title; 2842 } 2843 public function setTitleLink($titleLink) 2844 { 2845 $this->titleLink = $titleLink; 2846 } 2847 public function getTitleLink() 2848 { 2849 return $this->titleLink; 2850 } 2851 public function setUpdated($updated) 2852 { 2853 $this->updated = $updated; 2854 } 2855 public function getUpdated() 2856 { 2857 return $this->updated; 2858 } 2859 public function setUrl($url) 2860 { 2861 $this->url = $url; 2862 } 2863 public function getUrl() 2864 { 2865 return $this->url; 2866 } 2867 } 2868 2869 #[AllowDynamicProperties] 2870 class Google_Service_Blogger_PostAuthor extends Google_Model 2871 { 2872 protected $internal_gapi_mappings = array( 2873 ); 2874 public $displayName; 2875 public $id; 2876 protected $imageType = 'Google_Service_Blogger_PostAuthorImage'; 2877 protected $imageDataType = ''; 2878 public $url; 2879 2880 2881 public function setDisplayName($displayName) 2882 { 2883 $this->displayName = $displayName; 2884 } 2885 public function getDisplayName() 2886 { 2887 return $this->displayName; 2888 } 2889 public function setId($id) 2890 { 2891 $this->id = $id; 2892 } 2893 public function getId() 2894 { 2895 return $this->id; 2896 } 2897 public function setImage(Google_Service_Blogger_PostAuthorImage $image) 2898 { 2899 $this->image = $image; 2900 } 2901 public function getImage() 2902 { 2903 return $this->image; 2904 } 2905 public function setUrl($url) 2906 { 2907 $this->url = $url; 2908 } 2909 public function getUrl() 2910 { 2911 return $this->url; 2912 } 2913 } 2914 2915 #[AllowDynamicProperties] 2916 class Google_Service_Blogger_PostAuthorImage extends Google_Model 2917 { 2918 protected $internal_gapi_mappings = array( 2919 ); 2920 public $url; 2921 2922 2923 public function setUrl($url) 2924 { 2925 $this->url = $url; 2926 } 2927 public function getUrl() 2928 { 2929 return $this->url; 2930 } 2931 } 2932 2933 #[AllowDynamicProperties] 2934 class Google_Service_Blogger_PostBlog extends Google_Model 2935 { 2936 protected $internal_gapi_mappings = array( 2937 ); 2938 public $id; 2939 2940 2941 public function setId($id) 2942 { 2943 $this->id = $id; 2944 } 2945 public function getId() 2946 { 2947 return $this->id; 2948 } 2949 } 2950 2951 #[AllowDynamicProperties] 2952 class Google_Service_Blogger_PostImages extends Google_Model 2953 { 2954 protected $internal_gapi_mappings = array( 2955 ); 2956 public $url; 2957 2958 2959 public function setUrl($url) 2960 { 2961 $this->url = $url; 2962 } 2963 public function getUrl() 2964 { 2965 return $this->url; 2966 } 2967 } 2968 2969 #[AllowDynamicProperties] 2970 class Google_Service_Blogger_PostList extends Google_Collection 2971 { 2972 protected $collection_key = 'items'; 2973 protected $internal_gapi_mappings = array( 2974 ); 2975 public $etag; 2976 protected $itemsType = 'Google_Service_Blogger_Post'; 2977 protected $itemsDataType = 'array'; 2978 public $kind; 2979 public $nextPageToken; 2980 2981 2982 public function setEtag($etag) 2983 { 2984 $this->etag = $etag; 2985 } 2986 public function getEtag() 2987 { 2988 return $this->etag; 2989 } 2990 public function setItems($items) 2991 { 2992 $this->items = $items; 2993 } 2994 public function getItems() 2995 { 2996 return $this->items; 2997 } 2998 public function setKind($kind) 2999 { 3000 $this->kind = $kind; 3001 } 3002 public function getKind() 3003 { 3004 return $this->kind; 3005 } 3006 public function setNextPageToken($nextPageToken) 3007 { 3008 $this->nextPageToken = $nextPageToken; 3009 } 3010 public function getNextPageToken() 3011 { 3012 return $this->nextPageToken; 3013 } 3014 } 3015 3016 #[AllowDynamicProperties] 3017 class Google_Service_Blogger_PostLocation extends Google_Model 3018 { 3019 protected $internal_gapi_mappings = array( 3020 ); 3021 public $lat; 3022 public $lng; 3023 public $name; 3024 public $span; 3025 3026 3027 public function setLat($lat) 3028 { 3029 $this->lat = $lat; 3030 } 3031 public function getLat() 3032 { 3033 return $this->lat; 3034 } 3035 public function setLng($lng) 3036 { 3037 $this->lng = $lng; 3038 } 3039 public function getLng() 3040 { 3041 return $this->lng; 3042 } 3043 public function setName($name) 3044 { 3045 $this->name = $name; 3046 } 3047 public function getName() 3048 { 3049 return $this->name; 3050 } 3051 public function setSpan($span) 3052 { 3053 $this->span = $span; 3054 } 3055 public function getSpan() 3056 { 3057 return $this->span; 3058 } 3059 } 3060 3061 #[AllowDynamicProperties] 3062 class Google_Service_Blogger_PostPerUserInfo extends Google_Model 3063 { 3064 protected $internal_gapi_mappings = array( 3065 ); 3066 public $blogId; 3067 public $hasEditAccess; 3068 public $kind; 3069 public $postId; 3070 public $userId; 3071 3072 3073 public function setBlogId($blogId) 3074 { 3075 $this->blogId = $blogId; 3076 } 3077 public function getBlogId() 3078 { 3079 return $this->blogId; 3080 } 3081 public function setHasEditAccess($hasEditAccess) 3082 { 3083 $this->hasEditAccess = $hasEditAccess; 3084 } 3085 public function getHasEditAccess() 3086 { 3087 return $this->hasEditAccess; 3088 } 3089 public function setKind($kind) 3090 { 3091 $this->kind = $kind; 3092 } 3093 public function getKind() 3094 { 3095 return $this->kind; 3096 } 3097 public function setPostId($postId) 3098 { 3099 $this->postId = $postId; 3100 } 3101 public function getPostId() 3102 { 3103 return $this->postId; 3104 } 3105 public function setUserId($userId) 3106 { 3107 $this->userId = $userId; 3108 } 3109 public function getUserId() 3110 { 3111 return $this->userId; 3112 } 3113 } 3114 3115 #[AllowDynamicProperties] 3116 class Google_Service_Blogger_PostReplies extends Google_Collection 3117 { 3118 protected $collection_key = 'items'; 3119 protected $internal_gapi_mappings = array( 3120 ); 3121 protected $itemsType = 'Google_Service_Blogger_Comment'; 3122 protected $itemsDataType = 'array'; 3123 public $selfLink; 3124 public $totalItems; 3125 3126 3127 public function setItems($items) 3128 { 3129 $this->items = $items; 3130 } 3131 public function getItems() 3132 { 3133 return $this->items; 3134 } 3135 public function setSelfLink($selfLink) 3136 { 3137 $this->selfLink = $selfLink; 3138 } 3139 public function getSelfLink() 3140 { 3141 return $this->selfLink; 3142 } 3143 public function setTotalItems($totalItems) 3144 { 3145 $this->totalItems = $totalItems; 3146 } 3147 public function getTotalItems() 3148 { 3149 return $this->totalItems; 3150 } 3151 } 3152 3153 #[AllowDynamicProperties] 3154 class Google_Service_Blogger_PostUserInfo extends Google_Model 3155 { 3156 protected $internal_gapi_mappings = array( 3157 "postUserInfo" => "post_user_info", 3158 ); 3159 public $kind; 3160 protected $postType = 'Google_Service_Blogger_Post'; 3161 protected $postDataType = ''; 3162 protected $postUserInfoType = 'Google_Service_Blogger_PostPerUserInfo'; 3163 protected $postUserInfoDataType = ''; 3164 3165 3166 public function setKind($kind) 3167 { 3168 $this->kind = $kind; 3169 } 3170 public function getKind() 3171 { 3172 return $this->kind; 3173 } 3174 public function setPost(Google_Service_Blogger_Post $post) 3175 { 3176 $this->post = $post; 3177 } 3178 public function getPost() 3179 { 3180 return $this->post; 3181 } 3182 public function setPostUserInfo(Google_Service_Blogger_PostPerUserInfo $postUserInfo) 3183 { 3184 $this->postUserInfo = $postUserInfo; 3185 } 3186 public function getPostUserInfo() 3187 { 3188 return $this->postUserInfo; 3189 } 3190 } 3191 3192 #[AllowDynamicProperties] 3193 class Google_Service_Blogger_PostUserInfosList extends Google_Collection 3194 { 3195 protected $collection_key = 'items'; 3196 protected $internal_gapi_mappings = array( 3197 ); 3198 protected $itemsType = 'Google_Service_Blogger_PostUserInfo'; 3199 protected $itemsDataType = 'array'; 3200 public $kind; 3201 public $nextPageToken; 3202 3203 3204 public function setItems($items) 3205 { 3206 $this->items = $items; 3207 } 3208 public function getItems() 3209 { 3210 return $this->items; 3211 } 3212 public function setKind($kind) 3213 { 3214 $this->kind = $kind; 3215 } 3216 public function getKind() 3217 { 3218 return $this->kind; 3219 } 3220 public function setNextPageToken($nextPageToken) 3221 { 3222 $this->nextPageToken = $nextPageToken; 3223 } 3224 public function getNextPageToken() 3225 { 3226 return $this->nextPageToken; 3227 } 3228 } 3229 3230 #[AllowDynamicProperties] 3231 class Google_Service_Blogger_User extends Google_Model 3232 { 3233 protected $internal_gapi_mappings = array( 3234 ); 3235 public $about; 3236 protected $blogsType = 'Google_Service_Blogger_UserBlogs'; 3237 protected $blogsDataType = ''; 3238 public $created; 3239 public $displayName; 3240 public $id; 3241 public $kind; 3242 protected $localeType = 'Google_Service_Blogger_UserLocale'; 3243 protected $localeDataType = ''; 3244 public $selfLink; 3245 public $url; 3246 3247 3248 public function setAbout($about) 3249 { 3250 $this->about = $about; 3251 } 3252 public function getAbout() 3253 { 3254 return $this->about; 3255 } 3256 public function setBlogs(Google_Service_Blogger_UserBlogs $blogs) 3257 { 3258 $this->blogs = $blogs; 3259 } 3260 public function getBlogs() 3261 { 3262 return $this->blogs; 3263 } 3264 public function setCreated($created) 3265 { 3266 $this->created = $created; 3267 } 3268 public function getCreated() 3269 { 3270 return $this->created; 3271 } 3272 public function setDisplayName($displayName) 3273 { 3274 $this->displayName = $displayName; 3275 } 3276 public function getDisplayName() 3277 { 3278 return $this->displayName; 3279 } 3280 public function setId($id) 3281 { 3282 $this->id = $id; 3283 } 3284 public function getId() 3285 { 3286 return $this->id; 3287 } 3288 public function setKind($kind) 3289 { 3290 $this->kind = $kind; 3291 } 3292 public function getKind() 3293 { 3294 return $this->kind; 3295 } 3296 public function setLocale(Google_Service_Blogger_UserLocale $locale) 3297 { 3298 $this->locale = $locale; 3299 } 3300 public function getLocale() 3301 { 3302 return $this->locale; 3303 } 3304 public function setSelfLink($selfLink) 3305 { 3306 $this->selfLink = $selfLink; 3307 } 3308 public function getSelfLink() 3309 { 3310 return $this->selfLink; 3311 } 3312 public function setUrl($url) 3313 { 3314 $this->url = $url; 3315 } 3316 public function getUrl() 3317 { 3318 return $this->url; 3319 } 3320 } 3321 3322 #[AllowDynamicProperties] 3323 class Google_Service_Blogger_UserBlogs extends Google_Model 3324 { 3325 protected $internal_gapi_mappings = array( 3326 ); 3327 public $selfLink; 3328 3329 3330 public function setSelfLink($selfLink) 3331 { 3332 $this->selfLink = $selfLink; 3333 } 3334 public function getSelfLink() 3335 { 3336 return $this->selfLink; 3337 } 3338 } 3339 3340 #[AllowDynamicProperties] 3341 class Google_Service_Blogger_UserLocale extends Google_Model 3342 { 3343 protected $internal_gapi_mappings = array( 3344 ); 3345 public $country; 3346 public $language; 3347 public $variant; 3348 3349 3350 public function setCountry($country) 3351 { 3352 $this->country = $country; 3353 } 3354 public function getCountry() 3355 { 3356 return $this->country; 3357 } 3358 public function setLanguage($language) 3359 { 3360 $this->language = $language; 3361 } 3362 public function getLanguage() 3363 { 3364 return $this->language; 3365 } 3366 public function setVariant($variant) 3367 { 3368 $this->variant = $variant; 3369 } 3370 public function getVariant() 3371 { 3372 return $this->variant; 3373 } 3374 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body