I am having some issue with GET to /polls/voters.json (I need all userNames or IDs that voted each option)
Discourse is always returning me this error:
“You supplied invalid parameters to the request: poll_name”
post_id and poll_name are OK because vote and unvote endpoints works fine. It’s just this one
Dumb question, but don’t you see an ‘Export’ button on the poll itself?
Running the export ought to give you the API call (via your browser’s developer tools)…
Hi @ganncamp, I am not seeing that export button. Maybe should I configure this from server? I didn’t find any config about this.
I found an endpoint that should be returning this info but It’s not working - discourse/polls_controller.rb at main · discourse/discourse · GitHub
What do you get from “Show breakdown”?
The Export button shows if you have the Discourse Data Explorer plugin installed and working. There are plans to unbundle this eventually, but at the moment there is a dependency.
Thanks everyone for the help! I dont want to install that plugin. Maybe, I will find a workaround with vote and un-vote or something like that