Google_CommunityPollVotesServiceResource

The "communityPollVotes" 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_CommunityPollVotesServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Votes on a community poll. (communityPollVotes.insert) 
  6. * @param int $communityId The ID of the community whose poll is being voted. 
  7. * @param string $pollId The ID of the poll being voted. 
  8. * @param Google_CommunityPollVote $postBody 
  9. * @param array $optParams Optional parameters. 
  10. * @return Google_CommunityPollVote 
  11. */ 
  12. public function insert($communityId, $pollId, Google_CommunityPollVote $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_CommunityPollVote($data); 
  18. } else { 
  19. return $data;