Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Overview

This node manages Zalo groups by interacting with the Zalo API. Specifically, for the "Lấy Danh Sách Thành Viên" (Get Group Members) operation under the "Group" resource, it retrieves a list of members in a specified Zalo group. This is useful for scenarios where you need to monitor or process group membership data, such as syncing group members with another system, auditing group composition, or managing group communications.

Practical examples:

  • Fetching up to 50 members of a specific Zalo group to display or analyze member information.
  • Retrieving current admins and total member count to manage group roles or permissions externally.

Properties

Name Meaning
ID Nhóm The unique identifier of the Zalo group from which to retrieve members.
Giới Hạn The maximum number of group members to fetch (limit).

Output

The output JSON object contains the following fields:

  • members: An array of member IDs limited by the specified "Giới Hạn" value.
  • admins: An array of admin user IDs within the group.
  • currentMems: An array representing current members (details depend on API response).
  • updateMems: An array representing updated members (details depend on API response).
  • totalMember: The total number of members in the group.

This structure provides comprehensive membership details, including both regular members and admins, along with metadata about membership updates.

Dependencies

  • Requires an API key credential to authenticate with the Zalo API.
  • Uses the zca-js library internally to handle Zalo API interactions.
  • Node expects credentials containing cookie, IMEI, and user agent information for authentication.
  • No additional environment variables are explicitly required beyond the provided credentials.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials may cause authentication failures.
    • Providing an incorrect or non-existent group ID will result in empty or error responses.
    • Exceeding API rate limits could lead to temporary request failures.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Means the node failed to authenticate with the Zalo API. Verify that the API key credential is correctly configured and contains valid cookie, IMEI, and user agent values.
    • Errors related to invalid parameters typically indicate missing or malformed input properties like group ID or limit.
  • To resolve errors, ensure all required inputs are provided and credentials are valid. Use the "Continue On Fail" option to handle individual item errors gracefully during batch processing.

Links and References

Discussion