Librus icon

Librus

Read data from Librus Synergia (unofficial)

Homework → Get Absences

AI-generated

Summary

Retrieve a list of absences within an optional date range from the Librus system.

Inputs

  • From — Optional start date to filter absences, in YYYY-MM-DD format.
  • To — Optional end date to filter absences, in YYYY-MM-DD format.
  • Custom method name — Advanced option to override the underlying Librus API method called to fetch data, e.g., to use a different method than the default getAbsences.

Output shape

a list of absence records, each represented as JSON objects.

If no date range is provided, all absences are returned. Date filtering is applied if 'From' and/or 'To' dates are specified. The output always returns the filtered list of absences as an array of JSON objects.

Examples

Example 1: Retrieve all absences with dates between 2023-01-01 and 2023-01-31

Set 'From' to '2023-01-01' and 'To' to '2023-01-31'. Leave 'Custom method name' empty.

Discussion