Unblock User
AI-generatedOverview
This node enables advanced interactions with the Zalo User API, focusing on user-related social actions. It supports operations such as adding friends, blocking and unblocking users, retrieving friend lists, searching for users, and reacting to messages.
The Unblock User operation specifically allows you to remove a previously applied block on a target user by their user ID. This is useful in scenarios where you want to restore communication with a user you had blocked before.
Practical example:
If you had blocked a user due to unwanted messages but later decide to allow them to contact you again, this node's Unblock User operation can be used to programmatically unblock that user by specifying their user ID.
Properties
| Name | Meaning |
|---|---|
| User ID | ID of the target user to unblock |
Output
The node outputs JSON data representing the response from the Zalo API after attempting to unblock the user. The structure depends on the API response but generally includes status information about the unblock request.
If an error occurs and "Continue On Fail" is enabled, the output will contain an error field with the error message.
Dependencies
- Requires an API key credential for authenticating with the Zalo User API.
- Uses HTTP requests to Zalo endpoints, requiring network access.
- The node expects credentials to provide necessary headers like cookies and user-agent strings.
Troubleshooting
Common issues:
- Invalid or expired authentication credentials may cause authorization failures.
- Providing an incorrect or non-existent User ID will result in errors from the API.
- Network connectivity problems can prevent successful API calls.
Error messages:
"Unknown operation: unblockUser"— indicates a misconfiguration of the operation parameter; ensure it is set correctly.- API error responses are passed through; check the error message for details such as invalid user ID or permission issues.
Resolutions:
- Verify that the API credentials are valid and have not expired.
- Confirm the User ID is correct and corresponds to a user you intend to unblock.
- Ensure your environment has internet access and can reach the Zalo API endpoints.
Links and References
- Zalo Official API Documentation (for detailed API behavior and parameters)
- n8n Documentation (for general usage of custom nodes and credentials)