Given a list of Enrollment.MyOrgUnitAccessInfo objects, what is the recommended way to fetch each c

Options
I have a list of Enrollment.MyOrgUnitAccessInfo objects, obtained from the LP enrollments/myenrollments endpoint. I would like to fetch each course's description. I see an endpoint to fetch this information for a single course, given its orgUnitId; is there any better way (i.e. less likely to hit rate limits) to do this than calling this endpoint repeatedly? Thank you.
Tagged:

Answers

  • Viktor.Haag77
    Viktor.Haag77 Posts: 10
    edited November 2022

    It can slightly depend on what your use-case is: what kind of integration you're building, who the API-calling user context is, and so on. For most cases that involve end users (like students or instructors), cycling through the list of "myenrollments" one at a time is likely the best way.