Zalo Get User ID icon

Zalo Get User ID

Lấy User ID của tài khoản Zalo hiện tại

Zalo Get User ID

AI-generated

Overview

This node, named 'Zalo Get User ID', is designed to retrieve the user ID of the currently authenticated Zalo account. It is useful in scenarios where workflows need to identify or verify the Zalo user associated with the provided credentials, such as in automation tasks involving user-specific data or actions within the Zalo platform.

Use Case Examples

  1. Automating user-specific notifications or messages by first obtaining the user ID.
  2. Verifying the identity of the Zalo account connected to the workflow before performing further operations.

Output

JSON

  • success - Indicates whether the operation to get the user ID was successful (true or false).
  • userId - The retrieved Zalo user ID of the authenticated account, present if the operation was successful.
  • error - Error message describing why the operation failed, present if the operation was unsuccessful.

Dependencies

  • Requires Zalo API credentials including a license code, cookie, IMEI, and user agent for authentication.

Troubleshooting

  • Common issues include failure to initialize the Zalo API due to incorrect or expired credentials, which results in an error message 'Failed to initialize Zalo API. Check your credentials.'
  • Errors during login to Zalo API will throw 'Zalo login error' with the specific error message, indicating issues with authentication parameters.
  • If the node fails to get the user ID for a specific input item, it will throw an error unless 'Continue On Fail' is enabled, in which case it logs the error and continues processing other items.

Discussion