| @@ 545-637 (lines=93) @@ | ||
| 542 | * $people = $plusService->people; |
|
| 543 | * </code> |
|
| 544 | */ |
|
| 545 | class Google_Service_Plus_People_Resource extends Google_Service_Resource |
|
| 546 | { |
|
| 547 | ||
| 548 | /** |
|
| 549 | * Get a person's profile. If your app uses scope |
|
| 550 | * https://www.googleapis.com/auth/plus.login, this method is guaranteed to |
|
| 551 | * return ageRange and language. (people.get) |
|
| 552 | * |
|
| 553 | * @param string $userId The ID of the person to get the profile for. The |
|
| 554 | * special value "me" can be used to indicate the authenticated user. |
|
| 555 | * @param array $optParams Optional parameters. |
|
| 556 | * @return Google_Service_Plus_Person |
|
| 557 | */ |
|
| 558 | public function get($userId, $optParams = array()) |
|
| 559 | { |
|
| 560 | $params = array('userId' => $userId); |
|
| 561 | $params = array_merge($params, $optParams); |
|
| 562 | return $this->call('get', array($params), "Google_Service_Plus_Person"); |
|
| 563 | } |
|
| 564 | ||
| 565 | /** |
|
| 566 | * List all of the people in the specified collection. (people.listPeople) |
|
| 567 | * |
|
| 568 | * @param string $userId Get the collection of people for the person identified. |
|
| 569 | * Use "me" to indicate the authenticated user. |
|
| 570 | * @param string $collection The collection of people to list. |
|
| 571 | * @param array $optParams Optional parameters. |
|
| 572 | * |
|
| 573 | * @opt_param string orderBy The order to return people in. |
|
| 574 | * @opt_param string pageToken The continuation token, which is used to page |
|
| 575 | * through large result sets. To get the next page of results, set this |
|
| 576 | * parameter to the value of "nextPageToken" from the previous response. |
|
| 577 | * @opt_param string maxResults The maximum number of people to include in the |
|
| 578 | * response, which is used for paging. For any response, the actual number |
|
| 579 | * returned might be less than the specified maxResults. |
|
| 580 | * @return Google_Service_Plus_PeopleFeed |
|
| 581 | */ |
|
| 582 | public function listPeople($userId, $collection, $optParams = array()) |
|
| 583 | { |
|
| 584 | $params = array('userId' => $userId, 'collection' => $collection); |
|
| 585 | $params = array_merge($params, $optParams); |
|
| 586 | return $this->call('list', array($params), "Google_Service_Plus_PeopleFeed"); |
|
| 587 | } |
|
| 588 | ||
| 589 | /** |
|
| 590 | * List all of the people in the specified collection for a particular activity. |
|
| 591 | * (people.listByActivity) |
|
| 592 | * |
|
| 593 | * @param string $activityId The ID of the activity to get the list of people |
|
| 594 | * for. |
|
| 595 | * @param string $collection The collection of people to list. |
|
| 596 | * @param array $optParams Optional parameters. |
|
| 597 | * |
|
| 598 | * @opt_param string pageToken The continuation token, which is used to page |
|
| 599 | * through large result sets. To get the next page of results, set this |
|
| 600 | * parameter to the value of "nextPageToken" from the previous response. |
|
| 601 | * @opt_param string maxResults The maximum number of people to include in the |
|
| 602 | * response, which is used for paging. For any response, the actual number |
|
| 603 | * returned might be less than the specified maxResults. |
|
| 604 | * @return Google_Service_Plus_PeopleFeed |
|
| 605 | */ |
|
| 606 | public function listByActivity($activityId, $collection, $optParams = array()) |
|
| 607 | { |
|
| 608 | $params = array('activityId' => $activityId, 'collection' => $collection); |
|
| 609 | $params = array_merge($params, $optParams); |
|
| 610 | return $this->call('listByActivity', array($params), "Google_Service_Plus_PeopleFeed"); |
|
| 611 | } |
|
| 612 | ||
| 613 | /** |
|
| 614 | * Search all public profiles. (people.search) |
|
| 615 | * |
|
| 616 | * @param string $query Specify a query string for full text search of public |
|
| 617 | * text in all profiles. |
|
| 618 | * @param array $optParams Optional parameters. |
|
| 619 | * |
|
| 620 | * @opt_param string pageToken The continuation token, which is used to page |
|
| 621 | * through large result sets. To get the next page of results, set this |
|
| 622 | * parameter to the value of "nextPageToken" from the previous response. This |
|
| 623 | * token can be of any length. |
|
| 624 | * @opt_param string maxResults The maximum number of people to include in the |
|
| 625 | * response, which is used for paging. For any response, the actual number |
|
| 626 | * returned might be less than the specified maxResults. |
|
| 627 | * @opt_param string language Specify the preferred language to search with. See |
|
| 628 | * search language codes for available values. |
|
| 629 | * @return Google_Service_Plus_PeopleFeed |
|
| 630 | */ |
|
| 631 | public function search($query, $optParams = array()) |
|
| 632 | { |
|
| 633 | $params = array('query' => $query); |
|
| 634 | $params = array_merge($params, $optParams); |
|
| 635 | return $this->call('search', array($params), "Google_Service_Plus_PeopleFeed"); |
|
| 636 | } |
|
| 637 | } |
|
| 638 | ||
| 639 | ||
| 640 | ||
| @@ 810-896 (lines=87) @@ | ||
| 807 | * $people = $plusDomainsService->people; |
|
| 808 | * </code> |
|
| 809 | */ |
|
| 810 | class Google_Service_PlusDomains_People_Resource extends Google_Service_Resource |
|
| 811 | { |
|
| 812 | ||
| 813 | /** |
|
| 814 | * Get a person's profile. (people.get) |
|
| 815 | * |
|
| 816 | * @param string $userId The ID of the person to get the profile for. The |
|
| 817 | * special value "me" can be used to indicate the authenticated user. |
|
| 818 | * @param array $optParams Optional parameters. |
|
| 819 | * @return Google_Service_PlusDomains_Person |
|
| 820 | */ |
|
| 821 | public function get($userId, $optParams = array()) |
|
| 822 | { |
|
| 823 | $params = array('userId' => $userId); |
|
| 824 | $params = array_merge($params, $optParams); |
|
| 825 | return $this->call('get', array($params), "Google_Service_PlusDomains_Person"); |
|
| 826 | } |
|
| 827 | ||
| 828 | /** |
|
| 829 | * List all of the people in the specified collection. (people.listPeople) |
|
| 830 | * |
|
| 831 | * @param string $userId Get the collection of people for the person identified. |
|
| 832 | * Use "me" to indicate the authenticated user. |
|
| 833 | * @param string $collection The collection of people to list. |
|
| 834 | * @param array $optParams Optional parameters. |
|
| 835 | * |
|
| 836 | * @opt_param string orderBy The order to return people in. |
|
| 837 | * @opt_param string pageToken The continuation token, which is used to page |
|
| 838 | * through large result sets. To get the next page of results, set this |
|
| 839 | * parameter to the value of "nextPageToken" from the previous response. |
|
| 840 | * @opt_param string maxResults The maximum number of people to include in the |
|
| 841 | * response, which is used for paging. For any response, the actual number |
|
| 842 | * returned might be less than the specified maxResults. |
|
| 843 | * @return Google_Service_PlusDomains_PeopleFeed |
|
| 844 | */ |
|
| 845 | public function listPeople($userId, $collection, $optParams = array()) |
|
| 846 | { |
|
| 847 | $params = array('userId' => $userId, 'collection' => $collection); |
|
| 848 | $params = array_merge($params, $optParams); |
|
| 849 | return $this->call('list', array($params), "Google_Service_PlusDomains_PeopleFeed"); |
|
| 850 | } |
|
| 851 | ||
| 852 | /** |
|
| 853 | * List all of the people in the specified collection for a particular activity. |
|
| 854 | * (people.listByActivity) |
|
| 855 | * |
|
| 856 | * @param string $activityId The ID of the activity to get the list of people |
|
| 857 | * for. |
|
| 858 | * @param string $collection The collection of people to list. |
|
| 859 | * @param array $optParams Optional parameters. |
|
| 860 | * |
|
| 861 | * @opt_param string pageToken The continuation token, which is used to page |
|
| 862 | * through large result sets. To get the next page of results, set this |
|
| 863 | * parameter to the value of "nextPageToken" from the previous response. |
|
| 864 | * @opt_param string maxResults The maximum number of people to include in the |
|
| 865 | * response, which is used for paging. For any response, the actual number |
|
| 866 | * returned might be less than the specified maxResults. |
|
| 867 | * @return Google_Service_PlusDomains_PeopleFeed |
|
| 868 | */ |
|
| 869 | public function listByActivity($activityId, $collection, $optParams = array()) |
|
| 870 | { |
|
| 871 | $params = array('activityId' => $activityId, 'collection' => $collection); |
|
| 872 | $params = array_merge($params, $optParams); |
|
| 873 | return $this->call('listByActivity', array($params), "Google_Service_PlusDomains_PeopleFeed"); |
|
| 874 | } |
|
| 875 | ||
| 876 | /** |
|
| 877 | * List all of the people who are members of a circle. (people.listByCircle) |
|
| 878 | * |
|
| 879 | * @param string $circleId The ID of the circle to get the members of. |
|
| 880 | * @param array $optParams Optional parameters. |
|
| 881 | * |
|
| 882 | * @opt_param string pageToken The continuation token, which is used to page |
|
| 883 | * through large result sets. To get the next page of results, set this |
|
| 884 | * parameter to the value of "nextPageToken" from the previous response. |
|
| 885 | * @opt_param string maxResults The maximum number of people to include in the |
|
| 886 | * response, which is used for paging. For any response, the actual number |
|
| 887 | * returned might be less than the specified maxResults. |
|
| 888 | * @return Google_Service_PlusDomains_PeopleFeed |
|
| 889 | */ |
|
| 890 | public function listByCircle($circleId, $optParams = array()) |
|
| 891 | { |
|
| 892 | $params = array('circleId' => $circleId); |
|
| 893 | $params = array_merge($params, $optParams); |
|
| 894 | return $this->call('listByCircle', array($params), "Google_Service_PlusDomains_PeopleFeed"); |
|
| 895 | } |
|
| 896 | } |
|
| 897 | ||
| 898 | ||
| 899 | ||