Documentation for using the API's POST method to record a user's vote on a specific poll option.
Endpoint
Method:
Parameter:
| Parameter name | Required | Type | Explain |
|---|---|---|---|
| api_key_token | Yes | string | Your API key |
| guid | Yes | integer | Poll guid |
| option | Yes | string | Poll option hash below user wanted to vote Example fbeee6bcd14a108e9201ea9041ec96ae |
| uguid | Yes | integer | Loggedin user Guid |
Example Response
{
"merchant": "Premium Social Network",
"url": "http:\/\/local.openteknik.com\/",
"time_token": 1632159055,
"payload": {
"success": "Your vote has been saved for this poll",
"votes": {
"fbeee6bcd14a108e9201ea9041ec96ae": 100
}
},
"code": "100",
"message": "Request successfully executed"
}
Return payload parameter description
| Parameter name | Explain |
|---|---|
| votes | Return the votes percentage for each option |