curl \
-X GET \
"https://api.rumbletalk.com/chats/123456/polls" \
-H "Authorization: Bearer <token>"
{
"status": true,
"count": 18
"data": [
{
"id": 49,
"status": "Edit",
"roomId": 424844,
"userId": 2,
"question": "Sample question?",
"answer1": "1",
"answer2": "2",
"answer3": "3",
"answer4": "4",
"answer1count": 10,
"answer2count": 20,
"answer3count": 30,
"answer4count": 40,
"createDate": "2021-04-13 15:31:18",
"lastSentDate": "2021-04-14 16:32:19",
"publishedDate": "2021-04-15 17:33:20",
"dateDeleted": "2021-04-16 18:34:21"
},
...
]
}
curl \
-X POST \
"https://api.rumbletalk.com/chats/12345/polls" \
-H "Authorization: Bearer <token>" \
-d "{\"question\":\"My Question?\", \"answer1\": \"sample answer 1\", \"answer2\": \"sample answer 2\"}"
{
"id": 67890,
"createDate": 16184128201
}
curl \
-X PUT \
"https://api.rumbletalk.com/chats/12345/polls/67890" \
-H "Authorization: Bearer <token>" \
-d "{\"question\":\"My Question?\", \"answer1\": \"sample answer 1\", \"answer2\": \"sample answer 2\"}"
{
"status": true
}
curl \
-X DELETE \
"https://api.rumbletalk.com/chats/12345/polls/67890" \
-H "Authorization: Bearer <token>"
{
"status": true
}
curl \
-X POST \
"https://api.rumbletalk.com/chats/12345/polls/67890/reset" \
-H "Authorization: Bearer <token>"
{
"status": true
}
curl \
-X POST \
"https://api.rumbletalk.com/chats/12345/polls/67890/resend" \
-H "Authorization: Bearer <token>"
{
"status": true
}
curl \
-X POST \
"https://api.rumbletalk.com/chats/12345/polls/67890/publish" \
-H "Authorization: Bearer <token>"
{
"status": true
}