Unipile icon

Unipile

Interact with Unipile API

Overview

This node integrates with the Unipile API to perform various operations on different resources. Specifically, for the Post resource and the Comment Post operation, it allows users to add a comment to an existing post by sending a raw JSON body containing the comment details.

Common scenarios where this node is beneficial include automating social media management or content workflows where comments need to be programmatically added to posts, such as responding to user interactions or adding notes to posts in bulk.

Practical example: Automatically posting a comment to a blog post or social media update when triggered by another event, like receiving a new message or completing a task.

Properties

Name Meaning
Post ID The unique identifier of the post to which the comment will be added.
Body (JSON) The raw JSON object representing the content of the comment to be posted. This allows full customization of the comment's data structure as required by the API.

Output

The node outputs JSON data representing the response from the Unipile API after attempting to add the comment. This typically includes confirmation of the comment creation, details of the newly created comment, or error information if the operation failed.

If the API supports binary data in responses (not indicated here), the node would handle it accordingly, but based on the provided code and properties, the output is JSON only.

Dependencies

  • Requires an API key credential for authenticating with the Unipile API.
  • The base URL for API requests is configured via credentials.
  • The node expects the Unipile API to accept and return JSON-formatted data.

Troubleshooting

  • Missing or invalid Post ID: Ensure that the Post ID is correctly specified and corresponds to an existing post; otherwise, the API may return an error indicating the post was not found.
  • Malformed JSON in Body: The Body property must contain valid JSON. Invalid JSON will cause the request to fail.
  • Authentication errors: Verify that the API key credential is correctly set up and has sufficient permissions.
  • API endpoint issues: If the base URL or other request defaults are misconfigured, the node will fail to connect to the API.

Links and References

Discussion