dart_ipify 1.0.2 copy "dart_ipify: ^1.0.2" to clipboard
dart_ipify: ^1.0.2 copied to clipboard

outdated

This package uses the remote ipify web services in order to get your public IP address or geographical details from any given IP.

example/dart_ipify_example.dart

import 'package:dart_ipify/dart_ipify.dart';

// Example
void main() async {
  final ip = await Ipify.ipv64(format: Format.JSON);
  print(ip);

  final mygeo = await Ipify.geo('at_apiKeyxxxxxxxxxxxxxxxxxxxxxxx');
  print(mygeo.location);

  final somegeo =
      await Ipify.geo('at_apiKeyxxxxxxxxxxxxxxxxxxxxxxx', ip: '8.8.8.8');
  print(somegeo);

  final balance = await Ipify.balance('at_apiKeyxxxxxxxxxxxxxxxxxxxxxxx');
  print(balance);
}
168
likes
0
points
85.3k
downloads

Publisher

unverified uploader

Weekly Downloads

This package uses the remote ipify web services in order to get your public IP address or geographical details from any given IP.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http

More

Packages that depend on dart_ipify