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

// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");

// Call API
SettingOption settingOption = await WooSignal.instance.retrieveSettingOptions({required String groupid, required String id});

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

// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");

// Call API
List<SettingOption> settingOptions = await WooSignal.instance.getSettingOptions({String groupId});

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

// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");

// Call API
SettingOption settingOption = await WooSignal.instance.updateSettinOptions({String groupId});

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

// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");

// Call API
SettingOptionBatch settingOptionBatch = await WooSignal.instance.batchSettingOptions({Map<String, dynamic> data});

Response

SettingOptionBatch instance

Represents the following object - WooCommerce batch update setting options