Documentation for using the OSSN API's GET method to retrieve the complete JSON object for a single poll item. Includes details on poll options, current vote counts, and the required response schema for the OSSN platform.
Endpoint
Method:
Parameter:
| Parameter name | Required | Type | Explain |
|---|---|---|---|
| api_key_token | Yes | string | Your API key |
| guid | Yes | integer | Poll guid |
Example Response
{
"merchant": "Premium Social Network",
"url": "http:\/\/local.openteknik.com\/",
"time_token": 1632160060,
"payload": {
"poll": {
"data": {},
"guid": 20,
"time_created": 1623517514,
"owner_guid": 1,
"description": "{\"c4ca4238a0b923820dcc509a6f75849b\":\"1\",\"c81e728d9d4c2f636f067f89cc14862c\":\"2\"}",
"title": "Test",
"type": "user",
"subtype": "poll:item",
"container_guid": "1",
"container_type": "user",
"is_ended": "",
"poll_entity": "156"
}
},
"code": "100",
"message": "Request successfully executed"
}
Information
Desciption attribute contains the JSON formatted poll options.
poll_entity is used to fetch comments / likes as type=entity
Also includes :
is_liked_by_user
last_three_reactions
total_likes