This API lets you retrieve and view a specific setting option.
@required String groupid,
@required String id
// CONFIG FOR WOOSIGNAL
var wsConfig = {
"appKey":"your app key",
"debugMode":true
};
// CREATING AN INSTANCE
WooSignal.getInstance(config: wsConfig).then( (wcStore) {
wcStore.retrieveSettingOptions(
{@required String groupid, @required String id}).then((settingOption){
print(settingOption.toJson());
});
});
SettingOption instance
Represents the following object - WooCommerce retrieve a setting option
This API helps you to view all the setting options.
String groupId
// CONFIG FOR WOOSIGNAL
var wsConfig = {
"appKey":"your app key",
"debugMode":true
};
// CREATING AN INSTANCE
WooSignal.getInstance(config: wsConfig).then( (wcStore) {
wcStore.getSettingOptions({String groupId}).then((settingOption){
print(settingOption.toJson());
});
});
List<SettingOption> instance
Represents the following object - WooCommerce list all setting options
This API lets you make changes to a setting option.
Map<String, dynamic> data
// CONFIG FOR WOOSIGNAL
var wsConfig = {
"appKey":"your app key",
"debugMode":true
};
// CREATING AN INSTANCE
WooSignal.getInstance(config: wsConfig).then( (wcStore) {
wcStore.updateSettinOptions({String groupId}).then((settingOption){
print(settingOption.toJson());
});
});
SettingOption instance
Represents the following object - WooCommerce update a setting option
This API helps you to batch update multiple setting options.
Map<String, dynamic> data
// CONFIG FOR WOOSIGNAL
var wsConfig = {
"appKey":"your app key",
"debugMode":true
};
// CREATING AN INSTANCE
WooSignal.getInstance(config: wsConfig).then( (wcStore) {
wcStore.batchSettingOptions(
{Map<String, dynamic> data}).then((settingOptionBatch){
print(settingOptionBatch.toJson());
});
});
SettingOptionBatch instance
Represents the following object - WooCommerce batch update setting options