Flutter Canvas WooCommerce API
A Flutter package that helps in communicating with WooCommerce APIs, developed by fluttercanvas.io.
Getting Started
To use this package, follow these steps:
-
Obtain WooCommerce Consumer Secret and Key with Domain URL:
-
In your
main.dartfile, initialize aFlutterCanvasWooCommerceinstance using theinitfunction. -
Pass the key, secret, and URL in the
initfunction as follows:FlutterCanvasWooCommerce.instance.init( url: 'your_domain_url', consumerKey: 'your_consumerKey', consumerSecret: 'your_consumerSecret' );
-
-
Using the API in Your Project:
-
For example, to fetch products, you can implement it as follows:
FlutterCanvasWooCommerce.instance.fetchProducts(pageNumber: 1, perPage: 15);
-
-
Using the API in Your Project for Create:
-
For example, to create tags, you can implement it as follows:
```dart FlutterCanvasWooCommerce.instance.create_tags(ProductTagsModel(name:'Books' , description: 'Books for Knowledge'));' ```
Make sure to replace
'your_domain_url','your_consumerKey', and'your_consumerSecret'with your actual WooCommerce domain URL, consumer key, and consumer secret respectively. -