mobile_api 0.0.2 copy "mobile_api: ^0.0.2" to clipboard
mobile_api: ^0.0.2 copied to clipboard

mobile api package for moam digital system

mobile_api #

A Dart/Flutter package for seamless REST and GraphQL API integration in Moam Digital System apps.

Features #

  • Unified HTTP and GraphQL client
  • Automatic token refresh
  • Customizable headers (marketplace, user agent, etc.)
  • Error handling and logging
  • Multipart/form-data support

Getting started #

Add to your pubspec.yaml:

dependencies:
  mobile_api: ^0.0.2

Import in your Dart code:

import 'package:mobile_api/mobile_api.dart';

Usage #

final apiConfig = ApiConfig(
  apiUrl: Uri.parse('https://your.api.url'),
  marketplaceValue: 'YOUR_MARKETPLACE',
  userAgentValue: 'YOUR_USER_AGENT',
  // ...other config
);

final httpRepo = IHttp
1
likes
0
points
4
downloads

Publisher

unverified uploader

Weekly Downloads

mobile api package for moam digital system

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

connectivity_plus, flutter, flutter_secure_storage, fresh_graphql, graphql, http, http_parser

More

Packages that depend on mobile_api