Frustrating thing about mastoAPI documentation so far: lack of examples of how a constructed URL should look. I don’t need them often, but sometimes they give useful hints.
The Polls documentation seems to make sense right up until you get to the part about POSTing the choices: https://docs.joinmastodon.org/methods/statuses/polls/
For some reason, the server says this is a bad request:
POST https://social.deadsuperhero.com/api/v1/polls/23184193/votes/?choices[]=3
But, formatting the number to go inside the array brackets also fails. It’d just be nice to have an example of what the request is supposed to look like.
@sean I see where the documentation might be failing you. "choices" isn't a path parameter, it's a "form data parameter", which means it needs to be encoded in the request like form-data https://davidwalsh.name/curl-post-file