Actions12
Zalo User → Lấy Danh Sách Bạn Bè
AI-generatedOverview
This node operation "Lấy Danh Sách Bạn Bè" (Get Friends List) for the "Zalo User" resource retrieves a list of friends from a Zalo user account. It is useful in scenarios where you want to programmatically access and process a user's friend list on the Zalo platform, such as for social media analytics, marketing campaigns, or contact synchronization.
For example, you might use this node to:
- Fetch up to a specified number of friends to analyze their profiles.
- Integrate with other workflows that send messages or notifications to friends.
- Aggregate friend data for reporting or CRM purposes.
Properties
| Name | Meaning |
|---|---|
| Limit | The maximum number of friends to retrieve. Default is 50. |
Output
The output JSON contains a field named friends which holds an array of friend objects. Each object represents a friend in the user's friend list. The exact structure of each friend object is not detailed in the source code but typically includes identifiers and profile information.
Example output structure:
{
"friends": [
{
// friend details here
},
{
// friend details here
}
// ... up to the limit specified
]
}
No binary data output is indicated by the code.
Dependencies
- Requires an API authentication token or cookie credentials to access the Zalo user data.
- Uses an internal helper class to interact with the Zalo API, which requires valid session cookies, IMEI, and user agent strings.
- The node expects these credentials to be provided via n8n's credential management system.
Troubleshooting
Common issues:
- Invalid or expired authentication tokens/cookies will cause the node to fail fetching the friend list.
- Exceeding API rate limits may result in errors or incomplete data.
- Providing a limit value that is too large might lead to performance issues or API rejections.
Error messages:
- Errors related to authentication failure indicate missing or invalid credentials; ensure the API key or session cookies are correctly configured.
- Network or timeout errors suggest connectivity problems; verify network access to the Zalo API endpoints.
- If the response does not contain expected data, check if the user account has friends or if the API permissions are sufficient.
Links and References
- Zalo Official Developer Documentation
- Zalo API Authentication Guide
- n8n documentation on Creating Custom Nodes
Note: The source code was heavily obfuscated, so the summary is based on static analysis of the exposed logic and property definitions without runtime execution.