Sapo Blog icon

Sapo Blog

Manage Sapo blogs and articles

Overview

This node integrates with the Sapo blogging platform to manage blogs, articles, and comments. It allows users to perform various operations such as creating, retrieving, updating, and deleting blogs, articles, and comments. The node is particularly useful for automating content management workflows, moderating user comments, or synchronizing blog data with other systems.

For the "Tạo Bình Luận" (Create Comment) operation on the default resource, the node enables adding a new comment to a specific article within a blog. This can be used in scenarios like automatically posting user feedback collected from other platforms or integrating comment moderation tools.

Example use case: Automatically add a comment to an article after receiving feedback from a customer support system.

Properties

Name Meaning
ID Blog The numeric identifier of the blog where the article resides.
Dữ Liệu Bình Luận (Comment Data) JSON object containing the comment details. Includes fields such as:
- author: Name of the comment author.
- email: Email address of the author.
- body: The text content of the comment.
- ip: IP address of the commenter.

Output

The node outputs a JSON object representing the result of the create comment operation. This typically includes the newly created comment's details as returned by the Sapo API, such as its ID, author, body, creation timestamp, and status.

If the operation succeeds, the output JSON contains the full comment data as stored on the server. If it fails and the node is set to continue on failure, the output will contain an error message describing the issue.

The node does not output binary data.

Dependencies

  • Requires an active connection to the Sapo API via an API key credential configured in n8n.
  • The node depends on the internal SapoApiBase class to handle API requests to the Sapo blogging platform.
  • Proper permissions on the Sapo account are necessary to create comments on articles.

Troubleshooting

  • Common issues:

    • Invalid or missing blog or article IDs will cause errors.
    • Malformed JSON in the comment data property may lead to request failures.
    • Insufficient API permissions can prevent comment creation.
    • Network connectivity problems with the Sapo API endpoint.
  • Error messages:

    • Errors returned from the Sapo API will be surfaced with their message. For example, "Blog not found" or "Article ID invalid".
    • If the node throws a generic API error, verify that the API credentials are correct and have the required scopes.
    • To resolve JSON format issues, ensure the comment data JSON is valid and includes all required fields (author, email, body, ip).

Links and References

Discussion