Package to report learning actions in Rhubarb Education's bespoke online learning modules.
import { Conker, IConkerConfig } from 'conker-client';
const config: IConkerConfig = {
endpoint: "https://example.test/xapi/",
key: "KEY",
secret: "SECRET",
}
Conker.init(config);
Conker.report(
Conker.generateAnonymousAgentObject("https://example.com"),
Conker.verbs.COMPLETED,
Conker.generateCourseObject('https://example.com/course-1', 'Course 1', 'An example course.'),
);