ByteDev.AirVpn.IpLeak 2.0.0

Install-Package ByteDev.AirVpn.IpLeak -Version 2.0.0
dotnet add package ByteDev.AirVpn.IpLeak --version 2.0.0
<PackageReference Include="ByteDev.AirVpn.IpLeak" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ByteDev.AirVpn.IpLeak --version 2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ByteDev.AirVpn.IpLeak, 2.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install ByteDev.AirVpn.IpLeak as a Cake Addin
#addin nuget:?package=ByteDev.AirVpn.IpLeak&version=2.0.0

// Install ByteDev.AirVpn.IpLeak as a Cake Tool
#tool nuget:?package=ByteDev.AirVpn.IpLeak&version=2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

ByteDev.AirVpn.IpLeak

.NET Standard library to help communicate with the IP Leak API.

IP Leak is a API service provided by AirVPN that allows the retrieval of information about a particular IP address, domain name etc.

Installation

ByteDev.AirVpn.IpLeak is hosted as a package on nuget.org. To install from the Package Manager Console in Visual Studio run:

Install-Package ByteDev.AirVpn.IpLeak

Further details can be found on the nuget page.

Release Notes

Releases follow semantic versioning.

Full details of the release notes can be viewed on GitHub.

Usage

The main class in the assembly is IpLeakClient and has three public methods which each act against the IP Leak API:

  • GetIpDataAsync
  • GetDomainDataAsync
  • GetDnsDataAsync
// Retrieve data about a given IP address

const string ipAddress = "8.8.8.8";

IIpLeakClient client = new IpLeakClient(new HttpClient());

IpAddressResponse response = await client.GetIpDataAsync(ipAddress);

// response.CountryCode == "US"
// response.CountryName == "United States"
// response.ContinentCode == "NA"
// response.ContinentName == "North America"
// response.Latitude == 37.751
// response.Longitude = -97.822
// response.TimeZone == "America/Chicago"
// ...

Links

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.0 84 8/10/2021
1.0.0 91 8/10/2021