ip2proxy-3.2.0: IP2Proxy Haskell package for proxy detection.
Copyright(c) IP2Location 2021
LicenseMIT
Maintainersales@ip2location.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

IP2ProxyWebService

Description

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

Documentation

data WSResult Source #

Contains the web service results.

Constructors

WSResult 

Fields

Instances

Instances details
Eq WSResult Source # 
Instance details

Defined in IP2ProxyWebService

Show WSResult Source # 
Instance details

Defined in IP2ProxyWebService

ToJSON WSResult Source # 
Instance details

Defined in IP2ProxyWebService

FromJSON WSResult Source # 
Instance details

Defined in IP2ProxyWebService

data WSConfig Source #

Contains the web service configuration.

Instances

Instances details
Show WSConfig Source # 
Instance details

Defined in IP2ProxyWebService

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.

lookUp :: WSConfig -> String -> IO WSResult Source #

The lookUp function returns an WSResult containing proxy data for an IP address. It takes 2 arguments; the web service configuration from openWS function (WSConfig record) & either IPv4 or IPv6 address (String).

getCredit :: WSConfig -> IO WSResult Source #

The getCredit function returns an WSResult containing web service credit balance for the API key. It takes 1 argument; the web service configuration from openWS function (WSConfig record).