WeChat Enhanced icon

WeChat Enhanced

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

Overview

The "Create Unlimited QR Code" operation of the WeChat Enhanced node allows users to generate unlimited-use QR codes for WeChat Mini Programs. Unlike temporary QR codes, these unlimited QR codes do not expire and can be used indefinitely to direct users to specific pages or scenes within a Mini Program.

This operation is beneficial in scenarios where businesses or developers want to create persistent QR codes for marketing campaigns, product promotions, or user engagement without worrying about expiration. For example, a retail store could print an unlimited QR code on physical products that always directs customers to a product detail page in the Mini Program.

Properties

Name Meaning
Scene The scene parameter for the QR code, typically used to carry custom data or identifiers.
Page (Optional) The path of the Mini Program page to open when scanning the QR code.
Width The width of the generated QR code image in pixels (default is 430).

Output

The output JSON contains the result returned by the underlying API call to generate the unlimited QR code. This typically includes:

  • A URL or binary data representing the QR code image.
  • Metadata related to the QR code generation.

If the node supports binary output for the QR code image, it would represent the actual QR code image file encoded in binary form suitable for further processing or saving.

Dependencies

  • Requires a valid subscription and API key for the external N8N Tools API service.
  • Requires credentials for authenticating with the WeChat API.
  • The node internally uses a helper class to interact with the WeChat Mini Program API endpoints.

Troubleshooting

  • Invalid Subscription or API Key: If the node throws an error indicating invalid subscription or API key, verify that the API key credential is correctly configured and active.
  • Unsupported Operation Error: If an unsupported operation error occurs, ensure that the operation name matches exactly "createUnlimitedQRCode" and the resource is set to "miniProgram".
  • Missing Required Parameters: Ensure that the required parameters such as "Scene" are provided; missing required inputs will cause errors.
  • API Rate Limits: Generating many QR codes in a short time may hit API rate limits imposed by WeChat or the external API service.

Links and References

Discussion