Actions3
Overview
This node operation "Khóa bình chọn" (Lock Poll) is designed to lock a poll identified by its ID in the Zalo Poll system. Locking a poll typically means preventing further votes or changes, effectively closing it for participation. This operation is useful when you want to finalize poll results and stop any additional input.
Common scenarios include:
- Closing a poll after a deadline.
- Preventing further voting once a decision has been made.
- Archiving poll results without risk of modification.
Example use case:
- A marketing team runs a poll to decide on a campaign theme. Once enough responses are collected, they use this node operation to lock the poll, ensuring no more votes can be added.
Properties
| Name | Meaning |
|---|---|
| ID bình chọn | The numeric ID of the poll to lock. This is required to specify which poll should be locked. |
Output
The output JSON contains the following structure:
success: A boolean indicating whether the lock operation was successful.response: The raw response from the API or service confirming the poll lock status.poll_id: The ID of the poll that was locked.
Example output JSON:
{
"success": true,
"response": { /* API response details */ },
"poll_id": 12345
}
No binary data output is involved in this operation.
Dependencies
- Requires an API key credential for authenticating with the Zalo Poll service.
- Uses an internal client class instantiated with cookies, IMEI, and user agent strings extracted from credentials or previous authentication steps.
- Relies on the external Zalo Poll API to perform the lock action.
Troubleshooting
Common Issues
- Missing or invalid poll ID: The poll ID must be provided and valid; otherwise, the operation will fail.
- Authentication failure: If the API key or session information (cookie, IMEI, user agent) is incorrect or expired, the node will throw an error.
- API errors: Network issues or API-side problems may cause failures.
Error Messages
- Errors related to missing poll ID or invalid input will prompt messages indicating the required property is not set.
- Authentication errors will mention failure to create the client instance or invalid credentials.
- API call failures will return error details from the Zalo Poll service, which should be checked for rate limits, permissions, or other restrictions.
To resolve:
- Ensure the poll ID is correctly set.
- Verify that the API key and session credentials are valid and up to date.
- Check network connectivity and API service status.
Links and References
- Zalo Official API Documentation (general reference for Zalo APIs)
- Zalo Poll service documentation (if available internally or via Zalo developer portal)
Note: Internal credential names and exact API endpoints are abstracted for security and compliance.