|
1 | | -<!-- |
2 | | -This README describes the package. If you publish this package to pub.dev, |
3 | | -this README's contents appear on the landing page for your package. |
| 1 | +# WooCommerce API Dart plugin |
4 | 2 |
|
5 | | -For information about how to write a good package README, see the guide for |
6 | | -[writing package pages](https://dart.dev/guides/libraries/writing-package-pages). |
| 3 | +[Official WooSignal WooCommerce package](https://woosignal.com) |
7 | 4 |
|
8 | | -For general information about developing packages, see the Dart guide for |
9 | | -[creating packages](https://dart.dev/guides/libraries/create-library-packages) |
10 | | -and the Flutter guide for |
11 | | -[developing packages and plugins](https://flutter.dev/developing-packages). |
12 | | ---> |
| 5 | +Build apps for WooCommerce easier with our new package. |
| 6 | +Our API provides many requests types e.g. getProducts, getOrders, getCustomers and many more. |
| 7 | +Free to get started, see the simple examples below. |
13 | 8 |
|
14 | | -TODO: Put a short description of the package here that helps potential users |
15 | | -know whether this package might be useful for them. |
| 9 | +For help getting started with WooSignal, view our |
| 10 | +[online documentation](https://woosignal.com/docs/api/1.0/overview), which offers a more detail guide. |
16 | 11 |
|
17 | | -## Features |
| 12 | +### Getting Started # |
| 13 | +In your flutter project add the dependency: |
18 | 14 |
|
19 | | -TODO: List what your package can do. Maybe include images, gifs, or videos. |
| 15 | +``` dart |
| 16 | +dependencies: |
| 17 | + ... |
| 18 | + woosignal: ^2.2.0 |
| 19 | +``` |
| 20 | + |
| 21 | +### Usage example # |
| 22 | +Import woosignal.dart |
| 23 | +``` dart |
| 24 | +import 'package:woosignal/woosignal.dart'; |
| 25 | +``` |
| 26 | + |
| 27 | +### Example using WooSignal API for WooCommerce |
20 | 28 |
|
21 | | -## Getting started |
| 29 | +``` dart |
| 30 | +import 'package:woosignal/woosignal.dart'; |
22 | 31 |
|
23 | | -TODO: List prerequisites and provide or point to information on how to |
24 | | -start using the package. |
| 32 | +... |
25 | 33 |
|
26 | | -## Usage |
| 34 | +// EXAMPLE GET PRODUCTS |
| 35 | +_getProducts() async { |
27 | 36 |
|
28 | | -TODO: Include short and useful examples for package users. Add longer examples |
29 | | -to `/example` folder. |
| 37 | + // CONFIG FOR WOOSIGNAL |
| 38 | + var wsConfig = { |
| 39 | + "appKey":"your app key", |
| 40 | + "debugMode":true |
| 41 | + }; |
30 | 42 |
|
31 | | -```dart |
32 | | -const like = 'sample'; |
| 43 | + // CREATING AN INSTANCE |
| 44 | + WooSignal wooSignal = await WooSignal.getInstance(config: wsConfig); |
| 45 | + List<Product> products = await wooSignal.getProducts(); |
| 46 | + print(products[0].name); |
| 47 | + }); |
| 48 | +} |
33 | 49 | ``` |
34 | 50 |
|
35 | | -## Additional information |
| 51 | +### Available API Requests |
| 52 | + |
| 53 | +#### WooCommerce - Products |
| 54 | +- Get Products |
| 55 | +- Retrieve a Product by id |
| 56 | +- Update a Product by id |
| 57 | +- Delete a Product by id |
| 58 | +- Create a Product |
| 59 | +- Batch update Products |
| 60 | + |
| 61 | +[See Products API](https://woosignal.com/docs/api/1.0/products#list-all-products) |
| 62 | + |
| 63 | + |
| 64 | +#### WooCommerce - Product Variations |
| 65 | +- Get Product Variations |
| 66 | +- Retrieve a Product Variation by id |
| 67 | + |
| 68 | +[See Product Variations API](https://woosignal.com/docs/api/1.0/products-variations) |
| 69 | + |
| 70 | + |
| 71 | +#### WooCommerce - Product Attributes |
| 72 | +- Get Product Attributes |
| 73 | + |
| 74 | +[See Product Attributes API](https://woosignal.com/docs/api/1.0/products-attributes) |
| 75 | + |
| 76 | + |
| 77 | +#### WooCommerce - Products Attribute Terms |
| 78 | +- Get Products Attribute Terms |
| 79 | + |
| 80 | +[See Products Attribute Terms API](https://woosignal.com/docs/api/1.0/products-attribute-terms) |
| 81 | + |
| 82 | +#### WooCommerce - Product Categories |
| 83 | +- Get Product Categories |
| 84 | + |
| 85 | +[See Product Categories API](https://woosignal.com/docs/api/1.0/product-categories) |
| 86 | + |
| 87 | + |
| 88 | +#### WooCommerce - Products Shipping Classes |
| 89 | +- Get Products Shipping Classes |
| 90 | + |
| 91 | +[See Products Shipping Classes API](https://woosignal.com/docs/api/1.0/product-shipping-classes) |
| 92 | + |
| 93 | + |
| 94 | +#### WooCommerce - Product Reviews |
| 95 | +- Get Product Reviews |
| 96 | + |
| 97 | +[See Product Reviews API](https://woosignal.com/docs/api/1.0/product-reviews) |
| 98 | + |
| 99 | + |
| 100 | +#### WooCommerce - Tax Rates |
| 101 | +- Get Tax Rates |
| 102 | + |
| 103 | +[See Tax Rates API](https://woosignal.com/docs/api/1.0/tax-rates) |
| 104 | + |
| 105 | + |
| 106 | +#### WooCommerce - Tax Classes |
| 107 | +- Get Tax Classes |
| 108 | + |
| 109 | +[See Tax Classes API](https://woosignal.com/docs/api/1.0/tax-classes) |
| 110 | + |
| 111 | + |
| 112 | +#### WooCommerce - Shipping Zones |
| 113 | +- Get Shipping Zones |
| 114 | +- Retrieve a Shipping Zone by id |
| 115 | + |
| 116 | +[See Tax Classes API](https://woosignal.com/docs/api/1.0/tax-classes) |
| 117 | + |
| 118 | + |
| 119 | +#### WooCommerce - Shipping Zone Locations |
| 120 | +- Get Shipping Zone Locations |
| 121 | +- Retrieve a Shipping Zone Location by id |
| 122 | + |
| 123 | +[See Shipping Zone Locations API](https://woosignal.com/docs/api/1.0/shipping-zone-locations) |
| 124 | + |
| 125 | + |
| 126 | +#### WooCommerce - Shipping Methods |
| 127 | +- Get Shipping Methods |
| 128 | + |
| 129 | +[See Shipping Methods API](https://woosignal.com/docs/api/1.0/shipping-methods) |
| 130 | + |
| 131 | + |
| 132 | +#### WooCommerce - Orders |
| 133 | +- Get Orders |
| 134 | +- Retrieve a Order by id |
| 135 | +- Create an Order |
| 136 | +- Update an Order |
| 137 | +- Batch update Orders |
| 138 | + |
| 139 | +[See Order API](https://woosignal.com/docs/api/1.0/orders) |
| 140 | + |
| 141 | + |
| 142 | +#### WooCommerce - Customers |
| 143 | +- Get Customers |
| 144 | +- Create a Customer |
| 145 | +- Delete a Customer |
| 146 | +- Update a Customer |
| 147 | +- Batch update Customers |
| 148 | + |
| 149 | +[See Customers API](https://woosignal.com/docs/api/1.0/customers) |
| 150 | + |
| 151 | +#### WooCommerce - API Orders Notes |
| 152 | +- List all Orders Notes |
| 153 | +- Retrieve a Orders Notes by id |
| 154 | +- Delete a Orders Notes by id |
| 155 | +- Create a Orders Notes |
| 156 | + |
| 157 | +[See Orders Notes API](https://woosignal.com/docs/api/1.0/order-notes) |
| 158 | + |
| 159 | +#### WooCommerce - Refunds |
| 160 | +- Get refunds from an order id |
| 161 | +- Retrieve a retrieve and view a specific refund from an order |
| 162 | +- Delete a delete an order refund. |
| 163 | +- Create a new refund for an order |
| 164 | + |
| 165 | +[See Refunds API](https://woosignal.com/docs/api/1.0/order-refund) |
| 166 | + |
| 167 | +#### WooCommerce - Coupons |
| 168 | +- Get all coupons. |
| 169 | +- Retrieve and view a specific coupon by ID |
| 170 | +- Update a coupon. |
| 171 | +- Delete a coupon. |
| 172 | +- Batch update Coupons. |
| 173 | + |
| 174 | +[See Coupons API](https://woosignal.com/docs/api/1.0/coupons) |
| 175 | + |
| 176 | +#### WooCommerce - Reports |
| 177 | +- Get Reports |
| 178 | +- Retrieve a report of Sales |
| 179 | +- Retrieve a report of Top Sellers |
| 180 | +- Retrieve a report of the Total Coupons |
| 181 | +- Retrieve a report of the Total Customers |
| 182 | +- Retrieve a report of the Total Orders |
| 183 | +- Retrieve a report of the Total Products |
| 184 | +- Retrieve a report of the Total Reviews |
| 185 | + |
| 186 | +[See Reports API](https://woosignal.com/docs/api/1.0/reports) |
| 187 | + |
| 188 | +#### WooCommerce - Data |
| 189 | +- Retrieve a list of available data endpoints. |
| 190 | +- Get continents. |
| 191 | +- Retrieve continent data. |
| 192 | +- Get countries. |
| 193 | +- Retrieve country data. |
| 194 | +- Get currencies. |
| 195 | +- Retrieve currency data. |
| 196 | +- Retrieve current currency data. |
| 197 | + |
| 198 | +[See Data API](https://woosignal.com/docs/api/1.0/data) |
| 199 | + |
| 200 | +#### WooCommerce - System Status |
| 201 | +- Get System Status Items |
| 202 | + |
| 203 | +[See System Status API](https://woosignal.com/docs/api/1.0/system-status) |
| 204 | + |
| 205 | +#### WooCommerce - Payment gateways |
| 206 | +- Retrieve a Payment Gateway by id |
| 207 | +- Get all the Payment Gateways |
| 208 | +- Update a Payment Gateway |
| 209 | + |
| 210 | +[See Payment gateways API](https://woosignal.com/docs/api/1.0/payment-gateways) |
| 211 | + |
| 212 | +#### WooCommerce - Setting options |
| 213 | +- Retrieve a specific Setting Option |
| 214 | +- Get all the Setting Options |
| 215 | +- Update a Setting Option by id |
| 216 | +- Batch update Setting Options |
| 217 | + |
| 218 | +[See Setting options API](https://woosignal.com/docs/api/1.0/setting-options) |
| 219 | + |
36 | 220 |
|
37 | | -TODO: Tell users more about the package: where to find more information, how to |
38 | | -contribute to the package, how to file issues, what response they can expect |
39 | | -from the package authors, and more. |
| 221 | +Disclaimer: This plugin is not affiliated with or supported by Automattic, Inc. All logos and trademarks are the property of their respective owners. |
0 commit comments