polls
View and vote on polls attached to statuses. To discover poll ID, you will need to GET a Status first and then check for a `poll` property.
getView a poll
https://CounterSocial.example/api/v1/polls/:id
Returns: Poll
OAuth: Public if parent status is public. User token + read:statuses
if parent status is private.
Version history:
2.8.0 - added
Request
Path Parameters
:id
required
string
ID of the poll in the database
Response
200: Success
{
"id": "34830",
"expires_at": "2019-12-05T04:05:08.302Z",
"expired": true,
"multiple": false,
"votes_count": 10,
"voters_count": null,
"voted": true,
"own_votes": [
1
],
"options": [
{
"title": "accept",
"votes_count": 6
},
{
"title": "deny",
"votes_count": 4
}
],
"emojis": []
}
404: Not Found
Poll does not exist, or poll's parent status is private
{
"error": "Record not found"
}