Zalo Poll icon

Zalo Poll

Quản bình chọn Zalo

Overview

This node operation retrieves detailed information about a specific poll from the Zalo Poll service. It is useful when you want to fetch the current state, questions, options, and settings of an existing poll by providing its unique poll ID.

Common scenarios include:

  • Displaying poll details in dashboards or reports.
  • Synchronizing poll data with other systems.
  • Validating poll configurations before performing further actions.

Example: You have a poll running on Zalo and want to get its question text, available options, expiration time, and other metadata by specifying the poll's ID.

Properties

Name Meaning
ID bình chọn (poll_id) The unique numeric identifier of the poll to retrieve information for. This property is required.

Output

The node outputs JSON data containing the poll information retrieved from the service. The output structure includes:

  • success: A boolean indicating if the retrieval was successful.
  • response: An object containing the poll details such as question, options, expiration time, and various poll settings.
  • poll_id: The ID of the poll requested.

If the node supports binary data output, it is not evident from the code; thus, the output is primarily JSON-based.

Dependencies

  • Requires an API key credential for authenticating with the Zalo Poll service.
  • Uses internal classes and methods to handle cookies, user agent, and device identifiers (IMEI), which are likely managed via credentials or environment variables within n8n.
  • Relies on external libraries for HTTP requests and error handling (e.g., L for errors, k for poll API client).

Troubleshooting

  • Missing or invalid poll ID: The node requires a valid numeric poll ID. Ensure this is provided and correctly formatted.
  • Authentication errors: If the API key or authentication token is missing or invalid, the node will throw an error. Verify that the correct credentials are configured.
  • Network or service errors: Temporary network issues or service downtime may cause failures. Retry after some time or check service status.
  • Unexpected response format: If the poll does not exist or has been deleted, the node might return an error or empty response. Confirm the poll ID is correct and the poll is active.
  • Error messages: The node throws descriptive errors including the context and item index when processing multiple inputs. Review error messages for clues and ensure input data validity.

Links and References

Discussion