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 |
Retrieves a list of cities, possibly filtered.
See: DCM/DFA Reporting And Trafficking API Reference for dfareporting.cities.list
.
Synopsis
- type CitiesListResource = "dfareporting" :> ("v3.2" :> ("userprofiles" :> (Capture "profileId" (Textual Int64) :> ("cities" :> (QueryParams "regionDartIds" (Textual Int64) :> (QueryParam "namePrefix" Text :> (QueryParams "countryDartIds" (Textual Int64) :> (QueryParams "dartIds" (Textual Int64) :> (QueryParam "alt" AltJSON :> Get '[JSON] CitiesListResponse)))))))))
- citiesList :: Int64 -> CitiesList
- data CitiesList
- citRegionDartIds :: Lens' CitiesList [Int64]
- citProFileId :: Lens' CitiesList Int64
- citNamePrefix :: Lens' CitiesList (Maybe Text)
- citCountryDartIds :: Lens' CitiesList [Int64]
- citDartIds :: Lens' CitiesList [Int64]
REST Resource
type CitiesListResource = "dfareporting" :> ("v3.2" :> ("userprofiles" :> (Capture "profileId" (Textual Int64) :> ("cities" :> (QueryParams "regionDartIds" (Textual Int64) :> (QueryParam "namePrefix" Text :> (QueryParams "countryDartIds" (Textual Int64) :> (QueryParams "dartIds" (Textual Int64) :> (QueryParam "alt" AltJSON :> Get '[JSON] CitiesListResponse))))))))) Source #
A resource alias for dfareporting.cities.list
method which the
CitiesList
request conforms to.
Creating a Request
Creates a value of CitiesList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CitiesList Source #
Retrieves a list of cities, possibly filtered.
See: citiesList
smart constructor.
Instances
Request Lenses
citRegionDartIds :: Lens' CitiesList [Int64] Source #
Select only cities from these regions.
citProFileId :: Lens' CitiesList Int64 Source #
User profile ID associated with this request.
citNamePrefix :: Lens' CitiesList (Maybe Text) Source #
Select only cities with names starting with this prefix.
citCountryDartIds :: Lens' CitiesList [Int64] Source #
Select only cities from these countries.
citDartIds :: Lens' CitiesList [Int64] Source #
Select only cities with these DART IDs.