gogol-civicinfo-0.0.1: Google Civic Information SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.CivicInfo.Elections.VoterInfoQuery

Contents

Description

Looks up information relevant to a voter based on the voter's registered address.

See: Google Civic Information API Reference for civicinfo.elections.voterInfoQuery.

Synopsis

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:

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.