Poll participants in Discourse API?

poll

(Sckott) #1

It’s awesome we can get poll results with the Discourse API

"polls": {
  "poll": {
    "options": [
      {
        "id": "xxx",
        "html": "Yes",
        "votes": 8
      },
      {
        "id": "xxx",
        "html": "No",
        "votes": 0
      }
    ],
    "voters": 8,
    "status": "open",
    "name": "poll"
  }
}
...

Is there any way to get user names that voted in the poll? Maybe it’s in the works…


(Gerhard Schlager) #2

AFAIK that’s not possible at the moment.
But you can get that information with a database query.


(Sckott) #3

Great - thanks @gerhard - Should have seen that related question Is it possible to see who vote din polls