ImpSdk.getTopTenLovedProducts

developed by Ramu Katamaneni and Jileesh Mandody
Name Description
getTopTenLovedProducts SDK to get top 10 loved products in the given campaign within last 24 hours.

getTopTenLovedProducts()
input properties
campaignid: number Campaign id (must be predefined and should be in the config file)
callback: function Callback function to be called when top 10 loved products(within last 24 hours) response is ready
output properties
responseCode: number 0 = Top Ten Loved Products SDK call is successfully. 1 = unsuccessful
responseMessage: string Success or Error Message
responseArray: array Array of productid, pcount within last 24 hours