Copyright | (c) IP2Location 2021 |
---|---|
License | MIT |
Maintainer | sales@ip2location.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
This Haskell package allows users to query an IP address to determine if it was being used as open proxy, web proxy, VPN anonymizer and TOR exits.
IP2Proxy Web Service API subscription at https://www.ip2location.com/web-service/ip2proxy
Synopsis
- data WSResult = WSResult {
- response :: String
- countryCode :: Maybe String
- countryName :: Maybe String
- regionName :: Maybe String
- cityName :: Maybe String
- isp :: Maybe String
- domain :: Maybe String
- usageType :: Maybe String
- asn :: Maybe String
- as :: Maybe String
- lastSeen :: Maybe String
- proxyType :: Maybe String
- threat :: Maybe String
- isProxy :: Maybe String
- provider :: Maybe String
- data WSConfig
- openWS :: String -> String -> Bool -> IO WSConfig
- lookUp :: WSConfig -> String -> IO WSResult
- getCredit :: WSConfig -> IO WSResult
Documentation
Contains the web service results.
WSResult | |
|
Contains the web service configuration.
openWS :: String -> String -> Bool -> IO WSConfig Source #
The openWS
function initializes the web service configuration.
It takes 3 arguments; the web service API key, the API package to call & whether to use SSL.