Functions in Hype xAPI
HypeXAPI
HypeXAPI.sendStatement
1min
the sendstatement function sends a statement to the lrs to use the function, simply pass in the statement you wish to send, as well as the debug mode you wish to use the debug mode can be either 'echo' or null if you wish to debug your statements, the 'echo' mode will fetch the statement from the lrs after sending it fetching your statement directly allows you to evaluate the data entry created by the lrs here is an example of how to use the sendstatement function var stmt = { "actor" { "objecttype" "agent", "mbox" "mailto\ s\@s com" }, "verb" { "id" "http //adlnet gov/expapi/verbs/attended", "display" { "en us" "attended" } }, "object" { "id" "http //example com/xapi/course/b7cf87c5 a69d 4cbd 8d3f a54d44b5d3d8" } }; hypexapi sendstatement(stmt, true);