Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ip2location/src/ip2location.d.ts>IP2LocationWebService

Deno module for IP2Location to lookup the geolocation information
Latest
class IP2LocationWebService
import { IP2LocationWebService } from "https://deno.land/x/ip2location@8.3.0/src/ip2location.d.ts";

Methods

checkParams(): void

Performs parameter validations.

getCredit(callback: any): void

Queries the IP2Location Web Service for credit balance.

lookup(
myIP: string,
addOn: string,
lang: string,
callback: any,
): void

Queries the IP2Location Web Service for geolocation on the IP address.

open(
apiKey: string,
apiPackage: string,
useSSL?: boolean,
): void

Initializes with the IP2Location Web Service API key and the package to query.