Product Categories


Overview

The product categories API allows you to view individual or a batch of products.


List all categories

Returns products back from WooCommerce, include parameters to query data.

getProductCategories()

Parameters

int page,
int perPage,
String search,
List<int> exclude,
List<int> include,
String order,
String orderBy,
bool hideEmpty,
int parent,
int product,
String slug

API Call

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

// Call API
List<ProductCategory> productCategories = await WooSignal.instance.getProductCategories();

Response

List<ProductCategory> instance

Represents the following object - WooCommerce list all product categories