wp_json_api
5.0.2, released 6 weeks ago by woosignal.com
WordPress and WooCommerce JSON API client for user authentication, management, and customer data.
What it does
Connects Flutter applications to WordPress and WooCommerce backends using the WP JSON API plugin. It handles user sign up, login, profile management, WooCommerce customer data, and points/rewards.
AI-written summary of version 5.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building a Flutter app backed by a WordPress or WooCommerce site using the WP JSON API plugin.
- You need standard user authentication (login, register, reset password) with a WordPress backend.
- You need to fetch or update WooCommerce customer info and loyalty points.
Skip it when
- Your backend is not WordPress or WooCommerce.
- You are using a WordPress plugin version older than 5.0 (unless you stay on older package versions).
Strengths
- Provides typed exceptions for specific WordPress REST API error codes.
- Built-in secure token storage and session management.
- Supports WooCommerce customer details and Points and Rewards.
Weaknesses
- Tightly coupled to a specific WordPress plugin (WP JSON API 5.0+).
- Admin actions and role updates must be managed server-side.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
Requires installing the WP JSON API plugin (version 5.0 or later) on your WordPress site.
import 'package:wp_json_api/wp_json_api.dart';
void main() {
WPJsonAPI.instance.init(baseUrl: "https://mysite.com");
}Works with
Packages commonly used together with wp_json_api: ones it builds on, ones built on it, and its own family.
- flutter_secure_storagewp_json_api depends on itSecure key-value storage using platform-specific secure mechanisms
- diowp_json_api depends on itA powerful HTTP networking package for Dart and Flutter with interceptors and request cancellation.
- nylo_supportwp_json_api depends on itSupport library for the Nylo framework offering routing, networking, storage, widgets and more.