seeip_client 0.1.1 copy "seeip_client: ^0.1.1" to clipboard
seeip_client: ^0.1.1 copied to clipboard

outdated

A library that makes it easy to fetch data from SeeIP - A simple IP address API.

example/seeip_client_example.dart

// Copyright (c) 2019, Mad About Brighton. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import 'package:seeip_client/seeip_client.dart';

main() async {
  SeeipClient seeip = SeeipClient();

  // Fetches only the IP address of the requesting device.
  OnlyIP ip = await seeip.getIP();

  print(ip);

  // Fetches only the IPv4 address of the requesting device.
  OnlyIP ipv4 = await seeip.getIPv4();

  print(ipv4);

  // Fetches the Geo IP of the requesting device.
  GeoIP geoIP = await seeip.getGeoIP();

  print(geoIP);

  // Fetches the Geo IP of the specified IP address.
  GeoIP geoIPSpecific = await seeip.getGeoIP('216.58.208.174');

  print(geoIPSpecific);
}
2
likes
0
pub points
59%
popularity

Publisher

verified publishermadaboutbrighton.net

A library that makes it easy to fetch data from SeeIP - A simple IP address API.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

http

More

Packages that depend on seeip_client