Actions43
- 用户标签 Actions
- 用户 Actions
- 模板 Actions
- 发布 Actions
- 其他 Actions
- 菜单 Actions
- 素材 Actions
- 草稿 Actions
- 评论 Actions
Overview
This node interacts with the Wechat Official Account platform, specifically allowing users to manage and retrieve data related to various resources such as drafts. The "获取草稿列表" (Get Draft List) operation fetches a list of draft materials from the user's Wechat Official Account. This is useful for scenarios where you want to programmatically access and process draft content, such as preparing posts, reviewing pending articles, or automating content workflows.
Practical examples include:
- Automatically retrieving the latest drafts to display in a dashboard.
- Integrating draft content into other systems for review or editing.
- Batch processing or exporting draft materials for backup or analysis.
Properties
| Name | Meaning |
|---|---|
| 偏移位置 | Offset position to start returning drafts from; 0 means starting from the first draft. |
| 返回数量 | Number of drafts to return; valid values are between 1 and 20. |
| 是否返回内容 | Whether to return the full content of the drafts (true or false). |
Output
The output JSON contains an array of draft objects retrieved from the Wechat Official Account. Each object represents a draft material and includes metadata about the draft. If the "是否返回内容" property is set to true, the draft content will be included in the output; otherwise, only metadata without the full content is returned.
The node does not explicitly handle binary data output.
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:
- Invalid offset or count values may cause errors or empty results. Ensure offset is non-negative and count is between 1 and 20.
- Authentication failures if the API key credential is missing or invalid.
- Network or API rate limit errors when calling the Wechat Official Account API.
Error messages:
"未实现方法: 草稿.获取草稿列表"indicates that the requested resource-operation combination is not implemented. Verify the resource and operation names.- Errors during API calls will be logged with details; enabling "Continue On Fail" allows partial success with error reporting per item.
Links and References
- Wechat Official Account API Documentation
- n8n documentation on Creating Custom Nodes