|
|
 |
|
|
 |
|
|
|
Integration Specs
|
|
|
The specifications described below illustrate how to integrate IPVerify's logo and software into your
website. You will place two simple Script statements in your webpage that will specify the source on our server, and
pass in the appropriate parameters to generate the logo and examine visitor's information on your site. |
|
IP Display Integration
|
Start with displaying the IPVerify logo on your site along with your user's IP Addess. They will be able to click on this logo and see more detailed information about their IP, including location data and ISP information.
Integrating the IPVerify logo into your website is as easy as adding the one line of code below to your website and replacing #userid# with your unique userid provided at the time of purchase.
|
|
Validation Transaction Integration
|
Step 1 - Send IPVerify Input Variables View Input Chart | View Output Chart
Copy and paste the code below into a form that will gather the visitor's address information.
dim GotothisURL, GetConnection, Returnstr,ClientID,DomainName,IPAddress, Inputs
DomainName = Request.ServerVariables("SERVER_NAME")
IPAddress = Request.ServerVariables("REMOTE_ADDR")
URL = "http://ipverify.net/IPVERIFYPRODUCT/ipverifyaction.asp"
Inputs = URL & "?IPAddress=" & IPAddress & "&DomainName=" & DomainName
'SUPPLY DATA FOR THE VARIABLES BELOW(city,regionalabbrev,country,countrycode,postalcode,emailaddress)
Inputs = Inputs & "&city=" & city
Inputs = Inputs & "®ion=" & region
Inputs = Inputs & "®ionabbrev=" & regionabbrev
Inputs = Inputs & "&country=" & country
Inputs = Inputs & "&countrycode=" & countrycode
Inputs = Inputs & "&postalcode=" & postalcode
Inputs = Inputs & "&emailaddress=" & emailaddress
Inputs = Inputs & "&ClientID=YOURCLIENTID"
'***********************************************************************
Set GetConnection = CreateObject("Microsoft.XMLHTTP")
Call GetConnection.Open("get", Inputs, false)
Call GetConnection.Send()
Returnstr = GetConnection.responseText
Set GetConnection = Nothing
'***You may now use the variable Returnstr for your business logic- For Example below it is printed out to the browser***
Response.write Returnstr
|
Step 2 - Parse the Return String ( Variable: Returnstr )
There will be three types of code returned. The first 4 items will be information about the visitor's ISP. Items 5 and
6 will be the postal city and postal region, or the user information gathered from the zip code sent to us. The
following 10 items will be validation checks.
ISP Information Returned:
- IPCity
- IPRegion
- IPCountry
- IPISP
Address Information Returned
Validations Returned
- ValidatedCountry
- ValidatedCityinRegion
- ValidatedRegionInCountry
- ValidatedPostalInCountry
- ValidatedRegionInPostal
- ValidatedCityRegionInPostal
- ValidatedIPCountry
- ValidatedIPPostal
- ValidatedIPCity
- ValidatedIPRegion
- ValidatedEmail
- ValidatedIPAreaCode
- ValidatedAreaCodeCityRegion
Example Returned String:
WILMINGTON,DELAWARE,UNITED STATES,VERIZON INTERNET SERVICES,West
Chester,Pennsylvania,1,0,0,0,0,0,1,0,0,0,1,1
|
|
|