List Votes
AI-generatedOverview
This node interacts with the Vote Kit API to list votes with pagination support. It is useful for retrieving a paginated list of votes, which can be used in scenarios such as displaying vote records in a dashboard or processing vote data in batches.
Use Case Examples
- Retrieve a list of votes with a page size of 10 and page number 1 to display the first set of votes.
- Fetch subsequent pages of votes by changing the page number to paginate through all available votes.
Properties
| Name | Meaning |
|---|---|
| Page Size | Number of votes to retrieve per page. |
| Page Count | The page number to retrieve, used for pagination. |
Output
JSON
- ``
id- Unique identifier of each vote.title- Title of the vote.description- Description of the vote.maxVotePerUser- Maximum number of votes allowed per user.winnerCount- Number of winners for the vote.startTime- Start time of the vote.deadline- End time of the vote.publicVoterInfo- Indicates if voter information is public.publicCreate- Indicates if option creation is public.revote- Indicates if vote updates are allowed.comment- Indicates if comments are allowed.hideResultBeforeEnd- Indicates if results are hidden before the vote ends.addBonus- Indicates if bonus is added to the vote.rewardVoters- Indicates if bonus rewards are shared with voters.votersBonusPercentage- Percentage of bonus shared with voters.enableOptionLimit- Indicates if there is a limit on options per user.optionLimit- Maximum number of options allowed per user.options- List of options available in the vote.
Dependencies
- An API key credential for the Blocklet Component API
Troubleshooting
- Ensure the API key credential is correctly configured and has the necessary permissions to access the Vote Kit API.
- Verify that the page size and page number parameters are valid numbers and within acceptable ranges.
- Common error messages may include authentication errors if the API key is invalid or missing, and request errors if the API endpoint is incorrect or the server is unreachable. Check network connectivity and API endpoint URLs.
Links
- Vote Kit API Documentation - Official documentation for the Vote Kit API endpoints and usage.