Wechat Official Account Node icon

Wechat Official Account Node

Wechat Official Account Node

Overview

This node provides functionality to generate a short key from a given long string of data. It is useful in scenarios where you need to create a shortened representation or identifier for a piece of information that can be easily referenced or shared. For example, it can be used to shorten URLs, long text snippets, or any other data up to 4KB in size, with an optional expiration time.

Properties

Name Meaning
长信息 The long information string that needs to be converted into a short key (max 4KB).
过期秒数 Expiration time in seconds for the generated short key. Maximum is 2592000 (30 days).

Output

The output contains a JSON object representing the result of the short key generation operation. Each item corresponds to one input and includes the generated short key or an error message if the operation failed. The node does not output binary data.

Dependencies

  • Requires an API key credential for authentication with the Wechat Official Account service.
  • No additional external dependencies are explicitly mentioned in the provided code.
  • The node relies on internal resource and operation modules dynamically loaded at runtime.

Troubleshooting

  • Common issues:
    • Input data exceeding 4KB may cause errors or unexpected behavior.
    • Providing an expiration time greater than 2592000 seconds (30 days) might be rejected or reset to the maximum allowed value.
    • Missing or invalid API credentials will prevent successful execution.
  • Error messages:
    • "未实现方法" (Unimplemented method): Indicates the requested resource-operation combination is not supported.
    • Errors during the call function will be logged with details; enabling "continue on fail" allows processing subsequent items despite errors.

Links and References

Discussion