Sapo Blog icon

Sapo Blog

Manage Sapo blogs and articles

Overview

This node manages blogs and articles on the Sapo platform, focusing on operations related to blog posts, articles, and their comments. Specifically for the Blog resource with the Lấy Bình Luận (Get Comment) operation, it retrieves a single comment from a specified blog article.

Common scenarios where this node is useful include:

  • Fetching user comments on a particular blog article for moderation or display.
  • Integrating blog comment data into other workflows or systems.
  • Automating content management tasks such as reviewing or responding to comments.

For example, you might use this node to automatically retrieve a specific comment by its ID from a blog post to analyze sentiment or trigger notifications.

Properties

Name Meaning
ID Blog The unique numeric identifier of the blog containing the article.
ID Bình Luận The unique numeric identifier of the comment to retrieve. Required for comment operations.

Output

The output is a JSON object representing the retrieved comment's data. This typically includes fields such as author, email, body of the comment, IP address, timestamps, and any metadata provided by the Sapo API for that comment.

If the operation succeeds, the output JSON contains the full details of the requested comment. If an error occurs, the output may contain an error field describing the issue.

No binary data output is involved in this operation.

Dependencies

  • Requires an active connection to the Sapo API via an API key credential configured in n8n.
  • Depends on the SapoApiBase class which handles communication with the Sapo blogging platform.
  • The node requires the "sapoApi" credential to authenticate requests.

Troubleshooting

  • Common issues:

    • Providing incorrect or missing blog ID or comment ID will cause errors.
    • Network or authentication failures with the Sapo API can prevent data retrieval.
    • Requesting a comment that does not exist returns an error or empty response.
  • Error messages:

    • Errors returned from the API are surfaced with their message and stack trace.
    • If the node is set to continue on failure, errors appear in the output JSON under an error property.
  • Resolutions:

    • Verify that the blog ID and comment ID are correct and correspond to existing resources.
    • Ensure the API key credential is valid and has necessary permissions.
    • Check network connectivity and API endpoint availability.

Links and References

Discussion