Mastodon icon

Mastodon

Interact with Mastodon API

Actions115

Polls → Vote on Poll

AI-generated

Overview

This node interacts with the Mastodon API to allow users to vote on polls within the Mastodon social network. It is useful for automating poll participation in Mastodon instances, enabling workflows that can programmatically submit votes to polls based on specified choices.

Use Case Examples

  1. Automatically vote on a Mastodon poll by specifying the poll ID and the choices to select.
  2. Integrate Mastodon poll voting into a larger automation workflow to gather user input or feedback.

Properties

Name Meaning
Mastodon URL URL of the Mastodon instance to connect to, e.g., https://mastodon.social.
Authentication Type Method to authenticate with the Mastodon instance, either OAuth2 or Access Token.
Poll ID ID of the poll to interact with, required to identify which poll to vote on.
Choices Array of zero-based indices representing the selected options to vote for in the poll.

Output

JSON

  • json - The response from the Mastodon API after voting on the poll, typically including the updated poll data or confirmation of the vote.

Dependencies

  • Mastodon API credentials (OAuth2 or Access Token)

Troubleshooting

  • Ensure that the correct Mastodon instance URL is provided and accessible.
  • Verify that the authentication credentials are valid and have the necessary permissions to vote on polls.
  • The Poll ID must be correct and correspond to an existing poll on the Mastodon instance.
  • Choices must be an array of valid zero-based indices corresponding to the poll options; invalid indices may cause errors.
  • If using OAuth2 authentication, ensure OAuth2 credentials are selected; some operations require OAuth2 specifically.

Discussion