HumHub icon

HumHub

Consume HumHub API (v.0.1.8)

Actions126

Overview

This node operation fetches all answers for a specified survey from the HumHub API. It supports retrieving either all answers or a limited subset based on pagination parameters. This is useful for scenarios where you need to analyze or process survey responses programmatically, such as generating reports or integrating survey data with other systems.

Use Case Examples

  1. Retrieve all answers for a survey with ID 123 to analyze user feedback.
  2. Fetch the first 20 survey answers for survey ID 456 to display in a dashboard with pagination.

Properties

Name Meaning
Authentication Method of authentication to use for the API request (Basic Auth or JWT Token).
Survey ID The unique identifier of the survey for which answers are to be retrieved.
Return All Whether to return all survey answers or limit the results to a specified number.
Query Parameters Additional parameters for pagination when not returning all results, including limit and page number.

Output

JSON

  • ``
    • id - Unique identifier of each survey answer.
    • surveyId - ID of the survey to which the answer belongs.
    • answers - The actual answers provided in the survey response.
    • createdAt - Timestamp when the survey answer was submitted.

Dependencies

  • HumHub API

Troubleshooting

  • Ensure the Survey ID is valid and the survey exists in HumHub to avoid 404 errors.
  • If authentication fails, verify that the correct authentication method and credentials are provided.
  • When using pagination, ensure the limit is between 1 and 50 to avoid API errors.
  • If no answers are returned, check if the survey has any responses or if query parameters are filtering out results.

Links

Discussion