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 parementers 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

WooSignal wooSignal = new WooSignal();
wooSignal.setAppKey("your app key"); // Add your API key

wooSignal.getProductCategories().then((productCategories){
    wooSignal.printLog(productCategories.toString());
});

Response

List<ProductCategory> instance

Represents the following object - WooCommerce list all product categories