Class: RevievePR

RevievePR(sdk)

new RevievePR(sdk)

RevievePR class. Revieve Product Recommendations module
Parameters:
Name Type Description
sdk Object instance of RevieveSDK

Methods

getHistoryId() → {String}

Method to get history Id of the last getRecommendedProducts call
Returns:
string with history id
Type
String

getLastRecommendedProducts() → {Object}

Method to get last recommended products based in the parameters setted in SDK state. Please note, this method doesn't request any information to server.
Returns:
JSON set of recommended products
Type
Object

getRecommendedProducts() → {Promise}

Method to get recommended products based in the parameters setted in SDK state.
Returns:
Type
Promise