Setting options



Retrieve a setting option

This API lets you retrieve and view a specific setting option.

retrieveSettingOptions({})

Parameters

@required String groupid, 
@required String id

API Call

// 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());
    });
});

Response

SettingOption instance

Represents the following object - WooCommerce retrieve a setting option


List all setting options

This API helps you to view all the setting options.

getSettingOptions({})

Parameters

String groupId

API Call

// 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());
    });
});

Response

List<SettingOption> instance

Represents the following object - WooCommerce list all setting options


Update a setting option

This API lets you make changes to a setting option.

updateSettinOptions(String groupid, String id)

Parameters

Map<String, dynamic> data

API Call

// 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());
    });
});

Response

SettingOption instance

Represents the following object - WooCommerce update a setting option


Batch update setting options

This API helps you to batch update multiple setting options.

batchSettingOptions({})

Parameters

Map<String, dynamic> data

API Call

// 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());
    });
});

Response

SettingOptionBatch instance

Represents the following object - WooCommerce batch update setting options