Zalo User icon

Zalo User

Quản lý người dùng Zalo

Overview

This node manages Zalo users by interacting with the Zalo platform through various user-related operations. It is useful for automating tasks such as blocking or unblocking users, accepting friend requests, sending friend requests, changing alias names, and retrieving user information. For example, you can use this node to automatically block a user based on certain criteria or fetch detailed information about a user to personalize communications.

Properties

Name Meaning
User ID The unique identifier of the user to perform the operation on.

Output

The output JSON structure varies depending on the operation but generally includes:

  • status: A string indicating success, typically "Thành công" (meaning "Success").
  • response: The raw response from the Zalo API for the performed action.
  • For the getUserInfo operation, the output is the detailed user information object returned by the API.
  • For getAllFriends, the output contains a friends array listing friend objects.
  • In case of errors (if continuing on fail), the output includes an error field with the error message.

No binary data output is produced by this node.

Dependencies

  • Requires an API key credential to authenticate with the Zalo platform.
  • Uses cookies, device IMEI, and user agent strings from credentials or input data for authentication.
  • Depends on the external zca-js library to interact with the Zalo API.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials may cause login failures.
    • Missing required parameters like User ID will result in errors.
    • Network or API rate limiting issues could interrupt operations.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials." indicates authentication failure; verify your API key and cookie data.
    • Errors thrown during operations include the specific message from the Zalo API; enabling "Continue On Fail" allows processing subsequent items despite errors.

Links and References

Discussion