Wechat Official Account Node icon

Wechat Official Account Node

Wechat Official Account Node

Overview

This node integrates with the Wechat Official Account platform to perform various operations related to Wechat resources. Specifically, for the "用户" (User) resource and the "获取用户列表" (Get User List) operation, it retrieves a list of users who follow the official account. This is useful for scenarios where you want to manage or analyze your followers, send targeted messages, or synchronize user data with other systems.

For example, you might use this node to:

  • Fetch batches of follower OpenIDs to process them in bulk.
  • Build a CRM system by importing follower information.
  • Trigger workflows based on new followers or changes in the follower list.

Properties

Name Meaning
下一批OpenID The last OpenID from the previous batch of users. If left empty, fetching starts from the beginning.

Output

The node outputs an array of JSON objects representing the users retrieved from the Wechat Official Account. Each item corresponds to a user record containing their OpenID and potentially other user-related fields depending on the API response.

If the node supports binary data output (not explicitly shown in the provided code), it would typically represent media or files associated with users, but here the focus is on JSON user data.

Dependencies

  • Requires an API key credential for authenticating with the Wechat Official Account API.
  • The node depends on internal helper modules for resource and operation management.
  • No external environment variables are explicitly required beyond the API credentials.

Troubleshooting

  • Common issues:

    • Providing an invalid or expired API key will cause authentication failures.
    • Using an incorrect or unsupported resource-operation combination will throw an error indicating the method is not implemented.
    • Pagination errors may occur if the next_openid parameter is incorrect or outdated.
  • Error messages:

    • "未实现方法: 用户.获取用户列表" ("Method not implemented: 用户.获取用户列表"): This means the requested resource-operation pair is not supported; verify the resource and operation names.
    • Errors during API calls will be logged with details; enabling "Continue On Fail" allows processing subsequent items even if some fail.

Links and References

Discussion