The MoodleLti library offers an abstracted way to access Moodle's gradebook via the LTI interface.
Classes:
MoodleAuthenticationTools
: Parses a LTI tool launch request and allows accessing its parameters.MoodleLtiApi
: Implements low-level functions to communicate with Moodle via the LTI API.MoodleGradebook
: Provides abstracted means to read and write to the Moodle gradebook: Get/create/update/delete columns, set scores.CachedMoodleGradebook
: Is based onMoodleGradebook
, but caches retrieved data to reduce expensive LTI API queries. This should be used when a lot of gradebook operations are performed.
This is an utility library, which adds several extensions methods to the IServiceCollection
used for dependency injection.
The SampleToolProvider project contains a basic ASP.NET Core web application, which uses the functions provided by MoodleLti.