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
+
1
5
## [ 3.12.0] - 2024-03-15
2
6
3
7
* 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:
15
15
``` dart
16
16
dependencies:
17
17
...
18
- woosignal: ^3.12 .0
18
+ woosignal: ^3.13 .0
19
19
```
20
20
21
21
### Usage example #
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ import 'package:encrypt/encrypt.dart' as enc;
57
57
import 'package:encrypt/encrypt.dart' ;
58
58
59
59
/// WooSignal Package version
60
- const String _wooSignalVersion = "3.12 .0" ;
60
+ const String _wooSignalVersion = "3.13 .0" ;
61
61
62
62
class WooSignal {
63
63
WooSignal ._privateConstructor ();
@@ -1584,4 +1584,21 @@ class WooSignal {
1584
1584
jsonResponse: (json) => ProductTag .fromJson (json),
1585
1585
);
1586
1586
}
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
+ }
1587
1604
}
Original file line number Diff line number Diff line change 1
1
name : woosignal
2
2
description : 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
4
4
homepage : https://woosignal.com
5
5
repository : https://github.com/woosignal/flutter-woocommerce-api
6
6
issue_tracker : https://github.com/woosignal/flutter-woocommerce-api/issues
You can’t perform that action at this time.
0 commit comments