Mastodon icon

Mastodon

Interact with Mastodon API

Overview

This node interacts with the Mastodon API to perform various operations related to Mastodon resources. Specifically, for the 'Polls' resource with the 'View Poll' operation, it retrieves detailed information about a specific poll on a Mastodon instance. This is useful for applications that need to display poll results or details from Mastodon posts, such as social media dashboards or analytics tools.

Use Case Examples

  1. Viewing poll details by providing the Mastodon instance URL and the poll ID to fetch the poll's current status and options.
  2. Integrating Mastodon poll data into a custom reporting or monitoring system.

Properties

Name Meaning
Mastodon URL The URL of the Mastodon instance to connect to for API requests.
Poll ID The unique identifier of the poll to retrieve details for.

Output

JSON

  • json - The JSON object containing the poll details retrieved from the Mastodon API.

Dependencies

  • Requires an OAuth2 API credential for Mastodon to authenticate requests.

Troubleshooting

  • If the poll ID is invalid or does not exist, the node will throw an error indicating the poll could not be found.
  • If the Mastodon URL is incorrect or the instance is unreachable, the node will fail to connect and return an error.
  • Ensure the OAuth2 credentials are valid and have the necessary permissions to access poll data on the Mastodon instance.

Links

Discussion