The product tags API allows you to create, view, update, and delete individual product tags.
Returns product tags back from WooCommerce, include parameters to query data.
String? context,
int? page,
int? perPage,
String? search,
List<int>? exclude,
List<int>? include,
int? offset,
String? order,
String? orderBy,
bool? hideEmpty,
int? product,
String? slug
// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");
// Call API
List<ProductTag> productTags = await WooSignal.instance.getProductTags();
List<ProductTag> instance
Represents the following object - WooCommerce list all product tags
Returns a product tag back from WooCommerce, include parameters to query data.
int id
// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");
// Call API
ProductTag productTag = await WooSignal.instance.retrieveProductTag(id: "product id");
ProductTag instance
Represents the following object - WooCommerce retrieve a product tag
This API helps you delete a product tag.
int id,
{bool force = true}
// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");
// Call API
ProductTag productTag = await WooSignal.instance.deleteProductTag(id: "product id");
ProductTag instance
Represents the following object - WooCommerce product tag
This API lets you make changes to a product tag.
int id,
{Map<String, dynamic> data}
// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");
// Call API
ProductTag productTag = await WooSignal.instance.updateProductTag(id: "product id");
ProductTag instance
Represents the following object - WooCommerce product tag
This API helps you to create a new product tag.
required String name,
required String? slug,
required String? description
// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");
// Call API
ProductTag product = await WooSignal.instance.createProductTag({
required String name,
String? slug,
String? description
});
ProductTag instance
Represents the following object - WooCommerce product