Librus icon

Librus

Read data from Librus Synergia (unofficial)

Homework → Get Lucky Number

AI-generated

Summary

Retrieve the student's lucky number from Librus for the logged-in user, optionally filtering by an inclusive date range.

Inputs

  • From — Optional start date to filter the lucky number entry from (format YYYY-MM-DD).
  • To — Optional end date to filter the lucky number entry up to (format YYYY-MM-DD).
  • Custom method name — Override the underlying librus-api method to call (e.g., to use a custom or future method instead of 'getLuckyNumber').

Output shape

a single record containing the lucky number information, returned as JSON

If a custom method is specified, its result shape may vary. Date filtering applies if the method returns data supporting date ranges. Errors occur if the underlying method cannot be found or called.

Examples

Example 1: Retrieve the current lucky number without date filtering

Leave 'From' and 'To' empty and call the operation.

Example 2: Retrieve lucky number entries available between two dates

Specify 'From' and 'To' dates in YYYY-MM-DD format to limit results.

Discussion