autopilot_api 2.0.1 copy "autopilot_api: ^2.0.1" to clipboard
autopilot_api: ^2.0.1 copied to clipboard

Zero dependency pure Dart API engine for Flutter with smart caching, retry, token refresh, multipart upload, download support and automatic parsing.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add autopilot_api

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  autopilot_api: ^2.0.1

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:autopilot_api/auth/token_manager.dart';
import 'package:autopilot_api/autopilot_zero.dart';
import 'package:autopilot_api/cache/cache_service.dart';
import 'package:autopilot_api/connectivity/connectivity_service.dart';
import 'package:autopilot_api/core/autopilot_core.dart';
import 'package:autopilot_api/exceptions/api_exception.dart';
import 'package:autopilot_api/extensions/response_extensions.dart';
import 'package:autopilot_api/logger/autopilot_logger.dart';
import 'package:autopilot_api/models/api_response.dart';
import 'package:autopilot_api/models/autopilot_config.dart';
import 'package:autopilot_api/models/multipart_file_model.dart';
import 'package:autopilot_api/parsers/response_parser.dart';
import 'package:autopilot_api/queue/request_queue.dart';
import 'package:autopilot_api/retry/retry_service.dart';
import 'package:autopilot_api/storage/ap_storage.dart';
3
likes
140
points
200
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Zero dependency pure Dart API engine for Flutter with smart caching, retry, token refresh, multipart upload, download support and automatic parsing.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on autopilot_api