Vote
Request Parameters:
User can vote for store only registered user allowed
URL: ../Plugins/XcellenceIt.Plugin.Misc.NopRestApi/RemoteService/WebService.svc/Vote
Parameter:
{
"apiSecretKey": "k117x118z122r116t100e100r118j122",
"storeId": "1",
"customerId":"1",
"pollAnswerId":"1"
}
Response:
{
"VoteResult":
{
"Id": 1,
"Message": null,
"AlreadyVoted": true,
"Answers":
[
{
"Id": 1,
"Name": "Excellent",
"NumberOfVotes": 1,
"PercentOfTotalVotes": 100
},
{
"Id": 2,
"Name": "Good",
"NumberOfVotes": 0,
"PercentOfTotalVotes": 0
},
{
"Id": 3,
"Name": "Poor",
"NumberOfVotes": 0,
"PercentOfTotalVotes": 0
},
{
"Id": 4,
"Name": "Very bad",
"NumberOfVotes": 0,
"PercentOfTotalVotes": 0
}
],
"Name": "Do you like nopCommerce?",
"TotalVotes": 1
}
}