Google_CommunityPollCommentsServiceResource

The "communityPollComments" 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_CommunityPollCommentsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Adds a comment on a community poll. (communityPollComments.insert) 
  6. * @param int $communityId The ID of the community whose poll is being commented. 
  7. * @param string $pollId The ID of the poll being commented. 
  8. * @param Google_CommunityPollComment $postBody 
  9. * @param array $optParams Optional parameters. 
  10. * @return Google_CommunityPollComment 
  11. */ 
  12. public function insert($communityId, $pollId, Google_CommunityPollComment $postBody, $optParams = array()) { 
  13. $params = array('communityId' => $communityId, 'pollId' => $pollId, 'postBody' => $postBody); 
  14. $params = array_merge($params, $optParams); 
  15. $data = $this->__call('insert', array($params)); 
  16. if ($this->useObjects()) { 
  17. return new Google_CommunityPollComment($data); 
  18. } else { 
  19. return $data; 
  20. /** 
  21. * Retrieves the comments of a community poll. (communityPollComments.list) 
  22. * @param int $communityId The ID of the community whose poll is having its comments listed. 
  23. * @param string $pollId The ID of the community whose polls will be listed. 
  24. * @param array $optParams Optional parameters. 
  25. * @opt_param string pageToken A continuation token that allows pagination. 
  26. * @opt_param string maxResults The maximum number of comments to include in the response. 
  27. * @opt_param string hl Specifies the interface language (host language) of your user interface. 
  28. * @return Google_CommunityPollCommentList 
  29. */ 
  30. public function listCommunityPollComments($communityId, $pollId, $optParams = array()) { 
  31. $params = array('communityId' => $communityId, 'pollId' => $pollId); 
  32. $params = array_merge($params, $optParams); 
  33. $data = $this->__call('list', array($params)); 
  34. if ($this->useObjects()) { 
  35. return new Google_CommunityPollCommentList($data); 
  36. } else { 
  37. return $data;