パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v1.1.1

dart_ipify

このパッケージは、任意のIPアドレスから公開IPアドレスまたは地理的詳細情報を取得するために、リモートipifyウェブサービスを使用しています。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
5.9万
いいね数
178
Pub ポイント
160

パッケージをインストール

flutter pub add dart_ipify

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

dart_ipify パッケージは、ipify API を使用してパブリック IP アドレスまたは地理情報の取得を簡単に行う方法を提供します。Android、iOS、Web、macOS、Windows、Linux など複数のプラットフォームをサポートしており、ネットワークID情報を必要とするクロスプラットフォームアプリケーションに最適です。このパッケージは ipify サービスへの HTTP 要求を抽象化し、IP データの取得に使いやすいシンプルなメソッドを提供しています。リアルタイムでの IP 検索機能が必要なアプリケーション向けに軽量かつ信頼性が高いです。

用途

  • ユーザーのパブリックIPアドレスを取得中
  • IPから地理的位置データを取得する
  • クロスプラットフォームネットワーク診断
  • IPに基づくユーザーの位置追跡
  • アプリケーション内の自動IPログ記録

主な機能

  • IP取得のためのシンプルなAPI
  • IP経由での位置情報のサポート
  • すべての主要プラットフォームで動作します
  • 軽量で依存関係なし
  • セキュアなHTTPS接続を使用します
  • Flutterアプリとの簡単な統合

適している対象

  • ネットワーク対応アプリを開発する開発者
  • ユーザーのIP追跡が必要なアプリ
  • ネットワーク問題のデバッグに使用するツール
  • IP情報が必要なクロスプラットフォームアプリケーション
  • IPによる位置情報が必要なサービス

注意事項

  • 外部のipify APIの利用可能性に依存しています
  • 無料トライアルにはレート制限が適用される場合があります
  • 位置情報の精度は、ipify のデータに依存します
  • オフラインサポートなし
  • 動作にインターネット接続が必要です

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Dart Ipify

An unofficial client library for Ipify <https://www.ipify.org/> A Simple Public IP Address API, Likewise a geographical IP address details API.

GitHub license pub package Opensource Workflow

About ipify

Using ipify is ridiculously simple. You can get your public IP directly or you can get the precise physical location of a given IP address. so if you only have as much as an IP address, you can still find out its geographical details.

Meta

  • Author: Khalil Mejdi
  • Email: [khalil.mejdi](mailto:khalil.mejdi97@gmail.com)
  • Status: maintained, active

Purpose

This library makes getting your public IP address or the precise geographical details of a given IP address with the dart language extremely simple using Ipify's API.

Installation

dependencies:
  dart_ipify: ^1.1.1

Usage

Using this library is very simple. Here's a simple example:

IP Address API
import 'package:dart_ipify/dart_ipify.dart';

void main() async {
  final ipv4 = await Ipify.ipv4();
  print(ipv4); // 98.207.254.136

  final ipv6 = await Ipify.ipv64();
  print(ipv6); // 98.207.254.136 or 2a00:1450:400f:80d::200e

  final ipv4json = await Ipify.ipv64(format: Format.JSON);
  print(ipv4json); //{"ip":"98.207.254.136"} or {"ip":"2a00:1450:400f:80d::200e"}

  // The response type can be text, json or jsonp
}
IP Geolocation API
import 'package:dart_ipify/dart_ipify.dart';

void main() async {
  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);
}

Changelog

All library #changes, in descending order.

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

このパッケージを使用しているプロジェクト