Actions12
Overview
This node interacts with the Fider API to perform various actions on posts, comments, users, and samples. Specifically for the Post - Vote operation, it allows you to cast a vote (either an upvote or downvote) on a specified post by its ID.
Common scenarios where this node is useful include automating community engagement workflows, such as programmatically voting on posts based on external triggers or integrating Fider voting into larger automation pipelines.
For example, you could use this node to automatically upvote posts that meet certain criteria in your system, or to downvote posts flagged by moderation tools.
Properties
| Name | Meaning |
|---|---|
| Post ID | The numeric ID of the post to vote on. |
| URL | The target URL to visit (used generally across resources, not specific to voting). |
| Flattened Output | Whether to flatten the output data structure (true/false). |
| Vote Type | The type of vote to cast on the post: either "Upvote" or "Downvote". |
Output
The node outputs JSON data indicating the success of the vote operation. The typical output structure is:
{
"success": true
}
This confirms that the vote was successfully registered. There is no detailed post data returned from the vote operation itself.
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential for authenticating with the Fider API.
- The node depends on the
GenericFunctionsmodule which implements the actual API calls. - Proper configuration of the Fider API credentials within n8n is necessary.
Troubleshooting
Common issues:
- Invalid or missing Post ID will cause the vote operation to fail.
- Incorrect or expired API credentials will result in authentication errors.
- Network connectivity problems can prevent communication with the Fider API.
Error messages:
- Errors thrown by the node typically contain the message from the underlying API call.
- If the node is set to continue on failure, errors are returned in the output JSON under an
errorfield.
Resolutions:
- Verify the Post ID is correct and exists in the Fider instance.
- Ensure the API key credential is valid and has sufficient permissions.
- Check network access and firewall settings to allow outbound requests to the Fider API endpoint.
Links and References
- Fider Official Website
- Fider API Documentation (for details on voting endpoints)
- n8n Documentation on Creating Custom Nodes