wp_json_api 0.0.1 copy "wp_json_api: ^0.0.1" to clipboard
wp_json_api: ^0.0.1 copied to clipboard

outdated

WordPress and WooCommerce JSON API for Flutter Mobile

WordPress and WooCommerce JSON API Dart package for Flutter #

Official WooSignal WooCommerce package

API features:

WordPress - Register/Sign Up API for Users - Login (with email or username) - Get Users Info - Update Users Info - Update Users Password

WooCommerce: - Get Customers Info (Billing and Shipping) - Update Customers details

To use this API you must have the WP Json API Plugin installed first on your WordPress site, you can download it via the WooSignal website.

Examples using Wp JSON API #

import 'package:woosignal/wp_json_api.dart';

...

#1 - Set the base url (e.g. https://mysite.com)
``` dart
String base_url = "https://mywordpress-site.com";
WPJsonAPI.instance.initWith(baseUrl: base_url);

#2 - Call a method from the request api

WPUserLoginResponse wpUserLoginResponse = await WPJsonAPI.instance.api((request) {
       return request.wpLogin(email: email, password: password);
       });

For help getting started with WooSignal, view our online documentation, which offers a more detailed guide.

Usage #

To use this plugin, add wp_json_api as a dependency in your pubspec.yaml file.

Disclaimer: This plugin is not affiliated with or supported by Automattic, Inc. All logos and trademarks are the property of their respective owners.

39
likes
0
pub points
86%
popularity

Publisher

verified publisherwoosignal.com

WordPress and WooCommerce JSON API for Flutter Mobile

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, http

More

Packages that depend on wp_json_api