File tree Expand file tree Collapse file tree 4 files changed +24
-3
lines changed Expand file tree Collapse file tree 4 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 1+ ## [ 3.13.0] - 2024-03-15
2+
3+ * New network method ` personalizationCategories ` to store personalization categories
4+
15## [ 3.12.0] - 2024-03-15
26
37* Fix shipping zone method
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ In your flutter project add the dependency:
1515``` dart
1616dependencies:
1717 ...
18- woosignal: ^3.12 .0
18+ woosignal: ^3.13 .0
1919```
2020
2121### Usage example #
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ import 'package:encrypt/encrypt.dart' as enc;
5757import 'package:encrypt/encrypt.dart' ;
5858
5959/// WooSignal Package version
60- const String _wooSignalVersion = "3.12 .0" ;
60+ const String _wooSignalVersion = "3.13 .0" ;
6161
6262class WooSignal {
6363 WooSignal ._privateConstructor ();
@@ -1584,4 +1584,21 @@ class WooSignal {
15841584 jsonResponse: (json) => ProductTag .fromJson (json),
15851585 );
15861586 }
1587+
1588+ /// Used for personalization of the app around the user's interests
1589+ Future <bool ?> personalizationCategories (
1590+ {required List <int > categoryIds}) async {
1591+ Map <String , dynamic > payload = {
1592+ "category_ids" : categoryIds,
1593+ };
1594+ Map <String , dynamic >? payloadRsp =
1595+ await _apiProvider.post ("/personalization/categories" , payload);
1596+
1597+ _printLog (payloadRsp.toString ());
1598+ if (payloadRsp == null ) {
1599+ return false ;
1600+ }
1601+
1602+ return payloadRsp['status' ] == 200 ;
1603+ }
15871604}
Original file line number Diff line number Diff line change 11name : woosignal
22description : WooCommerce REST API for dart, connect a WooCommerce store and start developing with our interface for their API endpoints.
3- version : 3.12 .0
3+ version : 3.13 .0
44homepage : https://woosignal.com
55repository : https://github.com/woosignal/flutter-woocommerce-api
66issue_tracker : https://github.com/woosignal/flutter-woocommerce-api/issues
You can’t perform that action at this time.
0 commit comments