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

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);
}
153
likes
150
pub points
98%
popularity

Publisher

unverified uploader

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

Documentation

API reference

License

MIT (LICENSE)

Dependencies

http

More

Packages that depend on dart_ipify