ImpSdk.castRating

developed by Ramu Katamaneni
Name Description
castRating SDK for Generic Rating/Voting.

Demonstration:
Entry ID

castRating()
input properties
requestdata: object The input data as json, ex: {entrytype:"recipe", entryid:4456, rating:4}
callback: function Callback function to be called when a Entry is Rated and response is ready.
output properties
callback: function Callback function is returned with Error and Data( Ex: callback(error, responsedata) )
error: Error Error object with error details( For success: it is null )
responsedata: object Data object in JSON format with rating details for just voted entry( Ex: {entrytype:"recipe", entryid:44567, votes:63, average:3.5} )