Sunday, January 31, 2016

Practice sending xAPI statements

If you would like to better understand xAPI statements and have a try at creating some and sending to an LRS, here is a sequence that worked for me.


Read Anatomy of a Tin Can API Statement, This article and its links explains the structure of xAPI statements. If you are looking for the cliff notes version just read the sections on Actor, Verb, and Activity.




Now head to the xAPI Lab, where you can use a series of drop down boxes and text fields to build your own statement. For my example I wanted to send a statement that recorded that I read an article on curation by Ben Betts and Allison Anderson. Its  Actor - Verb - Activity are as follows.


John completed Diamond in the Rough


The nice thing about the xAPI lab is that you don't have to know all the context fields and for your first try you can get by with the basics. You will see some fields already completed and that is OK for now. Here are the fields that I completed or the system completed for me.


Actor Type: Agent
Email: menken.john@gmail.com
Name: John Menken
Predefined Verb: completed
Display Name: completed
Verb ID: [this was completed automatically after selecting a Predefined verb.]
Activity ID: http://johnmenken.blogspot.com/2016/01/practice-sending-xapi-statements.html
Name: Diamond in the Rough
Description: Article on curation by Ben Betts and Allison Anderson




After specifying the necessary information, scroll to the bottom of the screen and click the button entitled "Send Statement."






Go to the xAPI Statement Viewer. You should see your statement listed there.












No comments:

Post a Comment