Question

I need to retrieve a unit's assessment items (with deep link, achievable score, and due date) via Valence API in desire2learn.

I am able to retrieve grades, calendars and dropboxes via the following API calls:

/d2l/api/le/1.2/{orgUnit}/grades/ 
/d2l/api/le/1.2/{orgUnit}/dropbox/folders/
/d2l/api/le/1.2/{orgUnit}/calendar/events/user/

I can see that the grades retrieved correspond to either a dropbox or a quiz (#grades = #quizzes + #dropboxes), and I can link a calendar item to a dropbox via 'associated entity id'.

I have also found that a calendar entry can be associated with an id of type 'D2L.LE.Quizzing.Quiz' but I don't know what to do with that ID.

It seems to me that I need to start with calendar entries which have an associated entity, then lookup either a dropbox or a quiz based on the association, and then match the dropbox or quiz to a grade.

Was it helpful?

Solution

Although the API allows you to retrieve calendar events that associate to quiz entities, D2L does not yet have any APIs around the quiz entities themselves. You can retrieve the grade values/objects associated with a quiz, if the back-end service has associated grade items with the quiz; similarly, you can retrieve the calendar events associated with a quiz, as you have discovered. However, D2L doesn't yet provide a way to get at the quiz entity itself. This is an often-requested enhancement to the platform, and as a result, it does already exist on the product roadmap for future Learning Environment development; however, D2L does not yet have a committed release date for platform functionality around quiz entities.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top