Google_CommunitiesServiceResource

The "communities" collection of methods.

Defined (1)

The class is defined in the following location(s).

/inc/google-api-php-client/src/contrib/Google_OrkutService.php  
  1. class Google_CommunitiesServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Retrieves the list of communities the current user is a member of. (communities.list) 
  6. * @param string $userId The ID of the user whose communities will be listed. Can be me to refer to caller. 
  7. * @param array $optParams Optional parameters. 
  8. * @opt_param string orderBy How to order the communities by. 
  9. * @opt_param string maxResults The maximum number of communities to include in the response. 
  10. * @opt_param string hl Specifies the interface language (host language) of your user interface. 
  11. * @return Google_CommunityList 
  12. */ 
  13. public function listCommunities($userId, $optParams = array()) { 
  14. $params = array('userId' => $userId); 
  15. $params = array_merge($params, $optParams); 
  16. $data = $this->__call('list', array($params)); 
  17. if ($this->useObjects()) { 
  18. return new Google_CommunityList($data); 
  19. } else { 
  20. return $data; 
  21. /** 
  22. * Retrieves the basic information (aka. profile) of a community. (communities.get) 
  23. * @param int $communityId The ID of the community to get. 
  24. * @param array $optParams Optional parameters. 
  25. * @opt_param string hl Specifies the interface language (host language) of your user interface. 
  26. * @return Google_Community 
  27. */ 
  28. public function get($communityId, $optParams = array()) { 
  29. $params = array('communityId' => $communityId); 
  30. $params = array_merge($params, $optParams); 
  31. $data = $this->__call('get', array($params)); 
  32. if ($this->useObjects()) { 
  33. return new Google_Community($data); 
  34. } else { 
  35. return $data;