Product Reviews


Overview

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


List all product Reviews

Returns product reviews back from WooCommerce, include parementers to query data.

getProductReviews()

Parameters

int page,
int perPage,
String search,
String after,
String before,
List<int> exclude,
List<int> include,
int offset,
String order,
String orderBy,
List<int> reviewer,
List<int> reviewerExclude,
List<String> reviewerEmail,
List<int> product,
String status

API Call

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

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

    wcStore.getProductReviews().then( (productReviews) {
        print(productReviews.toString());
    });

});

Response

List<ProductReview> instance

Represents the following object - WooCommerce list all product reviews