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

A complete REST API client, empowering you to build your app effortlessly without reinventing the wheel. Supports OAuth2, JWT, and token store/refresh using Shared Preferences.

Helps you to automatically authenticate and store tokens and refresh them, also make api requests using them.
Supports OAuth2.
Shared Preferences used to store tokens.

Features #

✅ Automatically store tokens ✅ Automatically refresh tokens ✅ Supports Oauth2 ✅ Supports JWT ✅ Easy REST API call with auth credentials ✅ More coming soon ...

Getting started #

To start using package, add it to your dependencies by running this:

flutter pub add restful_api

or add this line into your pubspec.yaml under dependencies:

dependencies:  
  flutter:  
    sdk: flutter
  # your other dependencies ...
  
  restful_api: <latest_version>

Then import the package in desired files:

import 'package:restful_api/restful_api.dart'; 

Enjoy coding!

Usage #

const like = 'sample';  

Additional information #

https://docs.tijorat.org/flutter/restapi

0
likes
140
pub points
0%
popularity

Publisher

verified publishertijorat.org

A complete REST API client, empowering you to build your app effortlessly without reinventing the wheel. Supports OAuth2, JWT, and token store/refresh using Shared Preferences.

Homepage

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, http, jwt_decoder, oauth2, shared_preferences

More

Packages that depend on restful_api