Functions in Hype xAPI
...
HypeXAPI
HypeXAPI.setDefault

objects

1min
the hypexapi setdefault() command sets the default values for an xapi object the first parameter is the lookup key for the object, and the second parameter is an object containing the default values for the object different object types that can be used in the object branch of an xapi statement include agent, group, activity, and statementref the most common type used is activity hypexapi setdefault("objects", { "simplestatement" { "definition" { "name" { "en us" "simple statement" }, "description" { "en us" "a simple experience api statement " } }, "objecttype" "activity" }, "simple activity" { "definition" { "name" { "en us" "simple activity" }, "description" { "en us" "a simple experience api activity " } }, "objecttype" "activity" }, "simple agent" { "name" "example learner", "mbox" "mailto\ example\@adlnet gov", "objecttype" "agent" } });