Copyright | (c) 2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Looks up information relevant to a voter based on the voter's registered address.
See: Google Civic Information API Reference for civicinfo.elections.voterInfoQuery
.
- type ElectionsVoterInfoQueryResource = "civicinfo" :> ("v2" :> ("voterinfo" :> (QueryParam "address" Text :> (QueryParam "electionId" (Textual Int64) :> (QueryParam "officialOnly" Bool :> (QueryParam "alt" AltJSON :> Get `[JSON]` VoterInfoResponse))))))
- electionsVoterInfoQuery :: Text -> ElectionsVoterInfoQuery
- data ElectionsVoterInfoQuery
- eviqElectionId :: Lens' ElectionsVoterInfoQuery Int64
- eviqAddress :: Lens' ElectionsVoterInfoQuery Text
- eviqOfficialOnly :: Lens' ElectionsVoterInfoQuery Bool
REST Resource
type ElectionsVoterInfoQueryResource = "civicinfo" :> ("v2" :> ("voterinfo" :> (QueryParam "address" Text :> (QueryParam "electionId" (Textual Int64) :> (QueryParam "officialOnly" Bool :> (QueryParam "alt" AltJSON :> Get `[JSON]` VoterInfoResponse)))))) Source
A resource alias for civicinfo.elections.voterInfoQuery
method which the
ElectionsVoterInfoQuery
request conforms to.
Creating a Request
electionsVoterInfoQuery Source
Creates a value of ElectionsVoterInfoQuery
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ElectionsVoterInfoQuery Source
Looks up information relevant to a voter based on the voter's registered address.
See: electionsVoterInfoQuery
smart constructor.
Request Lenses
eviqElectionId :: Lens' ElectionsVoterInfoQuery Int64 Source
The unique ID of the election to look up. A list of election IDs can be obtained at https://www.googleapis.com/civicinfo/{version}/elections
eviqAddress :: Lens' ElectionsVoterInfoQuery Text Source
The registered address of the voter to look up.
eviqOfficialOnly :: Lens' ElectionsVoterInfoQuery Bool Source
If set to true, only data from official state sources will be returned.