WeChat Enhanced icon

WeChat Enhanced

WeChat Enhanced Node - Suporte completo para Mini Programs, Official Accounts, WeChat Pay e WeChat Work

Overview

This node, part of the "WeChat Enhanced" collection, provides comprehensive integration with various WeChat services including Mini Programs, Official Accounts, WeChat Pay, and WeChat Work. Specifically, for the Mini Program resource and the Get User Info operation, the node retrieves detailed user information based on a provided user Open ID.

This operation is useful when you want to fetch profile details or other user-specific data from a WeChat Mini Program user. For example, after a user logs into your Mini Program, you can use this node to get their profile info such as nickname, avatar, gender, and location to personalize the user experience or for further processing in your workflow.

Properties

Name Meaning
Open ID The unique identifier of the user within the Mini Program. This is required to specify which user's information to retrieve.

Output

The output of the node's execution for the "Get User Info" operation under the Mini Program resource is a JSON object containing the user's information as returned by the WeChat API. This typically includes fields such as:

  • openid: The user's Open ID.
  • nickname: The user's nickname.
  • gender: The user's gender.
  • province, city, country: Location information.
  • avatarUrl: URL to the user's avatar image.
  • Other user profile details as provided by the WeChat Mini Program API.

The exact structure depends on the WeChat API response but generally follows the standard user info schema.

No binary data output is indicated for this operation.

Dependencies

  • Requires an active subscription and valid API key credential for the external "N8N Tools API" service that acts as a proxy or middleware for WeChat API calls.
  • Requires credentials for authenticating with the WeChat Mini Program API (handled internally via the node's credential configuration).
  • The node performs an initial validation call to the external API service before executing operations.
  • Proper configuration of these credentials and API keys in n8n is necessary for successful execution.

Troubleshooting

  • Invalid Subscription or API Key: If the node throws an error indicating invalid subscription or API key, verify that the API key credential configured in n8n is correct and active.
  • Unsupported Operation Error: If an unsupported operation error occurs, ensure that the selected operation matches the resource and is supported by the node version.
  • Missing Required Parameters: The "Open ID" parameter is mandatory; missing or incorrect values will cause errors.
  • API Rate Limits or Network Issues: Since the node relies on external API calls, network connectivity issues or rate limits imposed by WeChat or the middleware API may cause failures.
  • Continue On Fail: If enabled, the node will return error messages in the output JSON instead of stopping the workflow, which can help in debugging batch executions.

Links and References


This summary focuses exclusively on the "Mini Program" resource and the "Get User Info" operation as requested.

Discussion