Actions3
Poll → Khóa bình chọn
AI-generatedOverview
This node interacts with Zalo's Poll API to manage polls. Specifically, for the 'Khóa bình chọn' (Lock Poll) operation, it locks a poll identified by its poll ID, preventing further voting or changes. This is useful in scenarios where a poll needs to be closed after a certain period or when a decision has been reached.
Use Case Examples
- Lock a poll after the voting deadline to prevent additional votes.
- Close a poll manually when the results are finalized.
Properties
| Name | Meaning |
|---|---|
| ID bình chọn | The unique numeric ID of the poll to be locked, required to identify which poll to lock. |
Output
JSON
success- Indicates if the lock poll operation was successful (true/false).response- The response object returned from the Zalo API after locking the poll, containing details about the operation.poll_id- The ID of the poll that was locked.
Dependencies
- Requires Zalo API credentials including cookie, IMEI, and user agent for authentication.
Troubleshooting
- Ensure the poll ID is valid and corresponds to an existing poll in Zalo.
- Verify that the Zalo API credentials are correct and have not expired.
- Common error: 'Zalo API not initialized' indicates missing or invalid credentials; re-authenticate to resolve.
- If the operation fails, check the error message returned by the API for details.