Actions48
- Account Actions
- Authentication Actions
- Blocks Actions
- Bookmarks Actions
- Favourites Actions
- Featured Tags Actions
- Follow Requests Actions
- Media Actions
- Mutes Actions
- Notifications Actions
- Status Actions
- Timeline Actions
- Polls Actions
Overview
This node interacts with the Mastodon API to perform various operations related to polls, specifically allowing users to vote on polls. It is useful for automating engagement with Mastodon polls, such as casting votes programmatically based on input data. For example, it can be used to automate voting in community polls on a Mastodon instance by specifying the poll ID and the choices to vote for.
Use Case Examples
- Automate voting on a Mastodon poll by providing the poll ID and selected choices.
- Integrate Mastodon poll voting into a workflow to gather or influence poll results automatically.
Properties
| Name | Meaning |
|---|---|
| Mastodon URL | The URL of the Mastodon instance to connect to for API interactions. |
| Poll ID | The unique identifier of the poll on which to vote. |
| Choices | An array of zero-based indices representing the selected options to vote for in the poll. |
Output
JSON
id- The unique identifier of the poll voted on.votes_count- The total number of votes the poll has received after voting.voted- Indicates whether the vote was successfully registered.choices- Details of the poll choices including the updated vote counts.
Dependencies
- Requires an OAuth2 API credential for Mastodon to authenticate requests.
Troubleshooting
- Ensure the Mastodon URL is correct and accessible.
- Verify that the OAuth2 credentials are valid and have the necessary permissions to vote on polls.
- Check that the Poll ID corresponds to an existing poll on the specified Mastodon instance.
- Make sure the choices array contains valid zero-based indices corresponding to the poll options.
- Common error: 'The operation "vote" for resource "polls" is not implemented!' indicates a misconfiguration or missing implementation; verify the node version and configuration.