Copyright | (c) 2015-2016 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 |
List of available elections to query.
See: Google Civic Information API Reference for civicinfo.elections.electionQuery
.
Synopsis
- type ElectionsElectionQueryResource = "civicinfo" :> ("v2" :> ("elections" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ElectionsQueryRequest :> Get '[JSON] ElectionsQueryResponse))))
- electionsElectionQuery :: ElectionsQueryRequest -> ElectionsElectionQuery
- data ElectionsElectionQuery
- eeqPayload :: Lens' ElectionsElectionQuery ElectionsQueryRequest
REST Resource
type ElectionsElectionQueryResource = "civicinfo" :> ("v2" :> ("elections" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ElectionsQueryRequest :> Get '[JSON] ElectionsQueryResponse)))) Source #
A resource alias for civicinfo.elections.electionQuery
method which the
ElectionsElectionQuery
request conforms to.
Creating a Request
electionsElectionQuery Source #
Creates a value of ElectionsElectionQuery
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ElectionsElectionQuery Source #
List of available elections to query.
See: electionsElectionQuery
smart constructor.
Instances
Request Lenses
eeqPayload :: Lens' ElectionsElectionQuery ElectionsQueryRequest Source #
Multipart request metadata.