Google_Service_CivicInfo_Elections_Resource

The "elections" collection of methods.

Defined (1)

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

/lib/vendor/google/apiclient/src/Google/Service/CivicInfo.php  
  1. class Google_Service_CivicInfo_Elections_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * List of available elections to query. (elections.electionQuery) 
  5. * @param array $optParams Optional parameters. 
  6. * @return Google_Service_CivicInfo_ElectionsQueryResponse 
  7. */ 
  8. public function electionQuery($optParams = array()) 
  9. $params = array(); 
  10. $params = array_merge($params, $optParams); 
  11. return $this->call('electionQuery', array($params), "Google_Service_CivicInfo_ElectionsQueryResponse"); 
  12. /** 
  13. * Looks up information relevant to a voter based on the voter's registered 
  14. * address. (elections.voterInfoQuery) 
  15. * @param string $address 
  16. * The registered address of the voter to look up. 
  17. * @param array $optParams Optional parameters. 
  18. * @opt_param string electionId 
  19. * The unique ID of the election to look up. A list of election IDs can be obtained at 
  20. * https://www.googleapis.com/civicinfo/{version}/elections 
  21. * @opt_param bool officialOnly 
  22. * If set to true, only data from official state sources will be returned. 
  23. * @return Google_Service_CivicInfo_VoterInfoResponse 
  24. */ 
  25. public function voterInfoQuery($address, $optParams = array()) 
  26. $params = array('address' => $address); 
  27. $params = array_merge($params, $optParams); 
  28. return $this->call('voterInfoQuery', array($params), "Google_Service_CivicInfo_VoterInfoResponse");