Vote Kit icon

Vote Kit

Consume Vote Kit API

Overview

This node integrates with the Vote Kit API to manage online voting polls and their options. It supports operations such as creating, updating, deleting, and retrieving votes (polls) and vote options. The node is useful for automating poll management workflows, collecting voting data, or integrating voting features into larger automation processes.

A practical example: You can use this node to fetch details of a specific vote by its ID, update the vote's settings like title or deadline, or create new voting options dynamically based on user input or external triggers.

Properties

Name Meaning
Vote ID The unique identifier of the vote (poll) to get, update, delete, or manage options for.

The node also supports other properties for different operations (not requested here), such as Title, Description, Max Vote Per User, Winner Count, Start Time, End Time, Public Voter Info, and more, which control various aspects of the vote or options.

Output

The output JSON contains the response from the Vote Kit API corresponding to the requested operation. For the "Get Vote" operation, it returns detailed information about the specified vote, including its configuration, options, status, and metadata.

No binary data output is produced by this node.

Dependencies

  • Requires an API key credential to authenticate requests to the Vote Kit API.
  • The node uses internal helper functions to make HTTP requests to endpoints like /api/poll/{pollId}.
  • No additional environment variables are explicitly required beyond the API authentication setup.

Troubleshooting

  • Common issues:

    • Providing an invalid or missing Vote ID will cause the API request to fail.
    • Network or authentication errors if the API key credential is not configured correctly.
    • Attempting to get a vote that does not exist will result in an error response from the API.
  • Error messages:

    • Errors returned from the API are captured and included in the node output if "Continue On Fail" is enabled.
    • Typical error messages include "Poll not found" or "Unauthorized" indicating missing or invalid credentials.
  • Resolution:

    • Ensure the Vote ID is correct and corresponds to an existing vote.
    • Verify that the API key credential is properly set up and has necessary permissions.
    • Check network connectivity and API endpoint availability.

Links and References

Discussion