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

The official Flutter package for the Greip API simplifies the integration of Greip services into Flutter applications.

example/example.md

Example #

This example demonstrates how to use the Greip package in a Flutter application.

Getting Started #

  1. Add the Greip package to your pubspec.yaml file:

    dependencies:
      greip: ^1.0.2
    
  2. Import the Greip package in your Dart code:

    import 'package:greip/greip.dart';
    
  3. Import the Enums you need:

    import 'package:greip/src/enums/mode.dart';
    import 'package:greip/src/enums/param.dart';
    import 'package:greip/src/enums/language.dart';
    
  4. Initialize the Greip package and use its functionalities:

    void main() {
      Greip greip = Greip();
      greip.setToken('your-greip-token');
    
      try {
         Map<String, dynamic> result = await greip.geoIp(params: [
             Param.security,
             Param.currency,
             Param.timezone,
             Param.location,
         ], lang: Language.en, mode: Mode.live);
             print(result);
         } catch (e) {
             print('Error: $e');
         }
    }
    
  5. Run your Flutter application to see the package in action.

Additional Information #

  • For detailed API documentation, refer to the official API reference.
  • Check out the tests included in the package for usage examples.
0
likes
160
pub points
0%
popularity

Publisher

verified publishergreip.io

The official Flutter package for the Greip API simplifies the integration of Greip services into Flutter applications.

Homepage
Repository (GitHub)
View/report issues

Topics

#api #flutter #geo-location #ai #iban

Documentation

Documentation
API reference

License

Apache-2.0 (license)

Dependencies

flutter, http

More

Packages that depend on greip