Product Attributes


Overview

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


List all product attributes

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

getProductAttributes()

API Call

// CONFIG FOR WOOSIGNAL
var wsConfig = {
"appKey":"your app key",
"debugMode":true
};

// CREATING AN INSTANCE
WooSignal.getInstance(config: wsConfig).then( (wcStore) {

    wcStore.getProductAttributes().then( (productAttributes) {
        print(productAttributes[0].name);
    });

});

Response

List<ProductAttribute> instance

Represents the following object - WooCommerce list all product attributes