xAPI code in action

This week I watched Increase the Value of Your eLearning with HTML5 and xAPI with James Kingsley from the e-Learning Brothers.

This was exactly the piece I felt like I was missing from understanding how xAPI statements GET made.  Most of the webinars, white papers and blogs I’ve ‘experienced’ have described the components of the xAPI code, but left out how to get the code to actually work.  James showed his end product, a web page created with bootstrap with 3 types of content each triggering a different type of xAPI statement.  Here’s what I learned:

  1. You must have a data call ‘trigger’ in the html anchor tag which ‘calls’ the xAPI statement you require.
  2. If you have something more complicated than a simple click>experience xAPI call, you will probably need to know some javascript or jQuery to make the xAPI statement trigger
  3. If you are having your actors sign on using oAuth access (pulling from existing google, facebook, twitter, etc accounts), you must have code to ask each account for the information you need.

Ultimately, if you are creating an xAPI enabled activity you will need 3 parts to enable your statements to be sent.  This is how it works.

xAPI in action

Leave a Reply

Your email address will not be published. Required fields are marked *