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.Representatives.RepresentativeInfoByDivision

Contents

Description

Looks up representative information for a single geographic division.

See: Google Civic Information API Reference for civicinfo.representatives.representativeInfoByDivision.

Synopsis

REST Resource

type RepresentativesRepresentativeInfoByDivisionResource = "civicinfo" :> ("v2" :> ("representatives" :> (Capture "ocdId" Text :> (QueryParams "roles" RepresentativesRepresentativeInfoByDivisionRoles :> (QueryParam "recursive" Bool :> (QueryParams "levels" RepresentativesRepresentativeInfoByDivisionLevels :> (QueryParam "alt" AltJSON :> Get `[JSON]` RepresentativeInfoData))))))) Source

A resource alias for civicinfo.representatives.representativeInfoByDivision method which the RepresentativesRepresentativeInfoByDivision request conforms to.

Creating a Request

representativesRepresentativeInfoByDivision Source

Creates a value of RepresentativesRepresentativeInfoByDivision with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

rribdRoles :: Lens' RepresentativesRepresentativeInfoByDivision [RepresentativesRepresentativeInfoByDivisionRoles] Source

A list of office roles to filter by. Only offices fulfilling one of these roles will be returned. Divisions that don't contain a matching office will not be returned.

rribdRecursive :: Lens' RepresentativesRepresentativeInfoByDivision (Maybe Bool) Source

If true, information about all divisions contained in the division requested will be included as well. For example, if querying ocd-division/country:us/district:dc, this would also return all DC's wards and ANCs.

rribdOcdId :: Lens' RepresentativesRepresentativeInfoByDivision Text Source

The Open Civic Data division identifier of the division to look up.

rribdLevels :: Lens' RepresentativesRepresentativeInfoByDivision [RepresentativesRepresentativeInfoByDivisionLevels] Source

A list of office levels to filter by. Only offices that serve at least one of these levels will be returned. Divisions that don't contain a matching office will not be returned.