Wechat Official Account Node icon

Wechat Official Account Node

Wechat Official Account Node

Overview

This node interacts with the Wechat Official Account platform, specifically allowing management of published articles. The "删除发布" (Delete Publish) operation enables users to delete one or more articles that have been previously published on the official account.

Common scenarios include:

  • Removing outdated or incorrect articles from a published set.
  • Managing content by deleting specific articles within a multi-article message.
  • Bulk deletion of all articles in a published message when no specific position is provided.

For example, if you have a multi-article post and want to remove only the second article, you specify its position. If you want to delete the entire published message, you omit the position or set it to zero.

Properties

Name Meaning
文章ID The unique identifier (article_id) returned when the article was successfully published.
文章位置 The position of the article within the multi-article message to delete. The first article is 1. If omitted or set to 0, all articles will be deleted.

Output

The node outputs JSON data representing the result of the delete operation. On success, this typically includes confirmation details about the deletion. If an error occurs, the output JSON contains an error field describing the issue.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for authenticating with the Wechat Official Account platform.
  • The node depends on internal resource and operation modules dynamically loaded at runtime.
  • No additional external services beyond the Wechat Official Account API are required.

Troubleshooting

  • Common issues:

    • Providing an invalid or expired article_id will cause the deletion to fail.
    • Specifying an out-of-range index (e.g., a position that does not exist in the article list) may result in errors or no action.
    • Omitting required parameters like article_id will trigger validation errors.
  • Error messages:

    • "未实现方法: publish.delete" indicates the requested operation is not implemented; ensure the correct resource and operation names are used.
    • Errors related to authentication failures suggest checking the API key credentials.
    • Network or API errors should be retried or checked for rate limits.

Links and References

Discussion