Google_AudiencesServiceResource

The "audiences" collection of methods.

Defined (1)

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

/src/contrib/Google_PlusDomainsService.php  
  1. class Google_AudiencesServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * List all of the audiences to which a user can share. (audiences.list) 
  5. * @param string $userId The ID of the user to get audiences for. The special value "me" can be used to indicate the authenticated user. 
  6. * @param array $optParams Optional parameters. 
  7. * @opt_param string maxResults The maximum number of circles to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults. 
  8. * @opt_param string pageToken The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response. 
  9. * @return Google_AudiencesFeed 
  10. */ 
  11. public function listAudiences($userId, $optParams = array()) { 
  12. $params = array('userId' => $userId); 
  13. $params = array_merge($params, $optParams); 
  14. $data = $this->__call('list', array($params)); 
  15. if ($this->useObjects()) { 
  16. return new Google_AudiencesFeed($data); 
  17. } else { 
  18. return $data;