Skip to content

Commit a78f177

Browse files
committed
Product api are done
1 parent 95d9176 commit a78f177

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ _getProducts() async {
5656
#### WooCommerce - Products
5757
- Get Products
5858
- Retrive a Product by id
59+
- Update a Product by id
60+
- Delete a Product by id
61+
- Create a Product
62+
- Create, Delete and Update Product Multiple Time.
5963

6064
[See Products API](https://woosignal.com/docs/api/1.0/products#list-all-products)
6165

@@ -138,7 +142,13 @@ _getProducts() async {
138142

139143
#### WooCommerce - Customers
140144
- Get Customers
145+
- Create a Customer
146+
- Delete a Customer
147+
- Update a Customer
148+
- Create, Delete and Update Product Multiple Time.
141149

142150
[See Customers API](https://woosignal.com/docs/api/1.0/customers)
143151

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

lib/woosignal.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,7 @@ class WooSignal {
713713

714714
// Create a product
715715
// This API helps you to create a new product.
716+
/// https://woosignal.com/docs/api/1.0/products#create-a-product
716717
717718
Future<Product> createProduct({
718719
@required String name,
@@ -743,7 +744,7 @@ class WooSignal {
743744
}
744745
// Update a product
745746
// This API lets you make changes to a product.
746-
747+
/// https://woosignal.com/docs/api/1.0/products#update-a-product
747748
Future<Product> updateProduct(int id, {Map<String, dynamic> data}) async {
748749
Map<String, dynamic> payload = data;
749750

@@ -760,6 +761,7 @@ class WooSignal {
760761

761762
// Delete a product
762763
// This API helps you delete a product.
764+
/// https://woosignal.com/docs/api/1.0/products#delete-a-product
763765
Future<Product> deleteProduct(int id, {Map<String, dynamic> data}) async {
764766
Map<String, dynamic> payload = data;
765767

@@ -776,6 +778,7 @@ class WooSignal {
776778

777779
// This API helps you to batch create, update and delete multiple Products.
778780
// Note: By default it's limited to up to 100 objects to be created, updated or deleted.
781+
/// https://woosignal.com/docs/api/1.0/products#batch-products
779782
Future<ProductBatch> batchProduct({Map<String, dynamic> data}) async {
780783
Map<String, dynamic> payload = data;
781784

0 commit comments

Comments
 (0)