Contact Us Support Forum Get Email Updates
 
 

Thanks! Someone will be in touch with you shortly.

Rather just email us? Email us here.
Rather speak with someone in person?
Call any time with Experience API questions:

866.497.2676

2. Update Titles and Paths

In the root folder of the Driver package that you just downloaded, you’ll see some files.

Software you might need…
You’ll need a text editor to edit these files. Some text editing programs will attempt to display the files as webpages instead of text, so for the purposes of this guide we’ll be using TextWrangler for Mac (it’s free.) Don’t use TextEdit for Mac, it won’t work. If you’re on a Windows machine, WordPad (no download required) is the text editor that you want to use.

Files that you’ll need to change…

After you’ve downloaded Driver, you’ll need to modify two files that are found in the root directory of the download.

tincan.xml

The first is “tincan.xml”. Open the file in your text editor, and change the following lines:

Here’s what to modify in tincan.xml:

  • –ActivityID– : This is the object of the xAPI statement. It’s usually a URL. You can use whatever you want here, just make it something that makes your activity uniquely identifiable.
  • –ActivityName– : Replace this with the title of your course or activity.
  • –ActivityDesc– : Replace this with a very brief description of your activity.

After you’ve made your modifications, save your file.

tc-config.js

The other file you need to modify for xAPI use is tc-config.js, also found in the root directory of your download. Open it in your text editor, and pay attention to the following code:

Here’s what to modify in tc-config.js (it’s largely similar to how you updated tincan.xml):

  • –ActivityID– : This is the object of the xAPI statement. It’s usually a URL. You can use whatever you want here, just make it something that makes your activity uniquely identifiable.
  • –ActivityName– : Replace this with the title of your course or activity.
  • –ActivityDesc– : Replace this with a very brief description of your activity.

Now, the current configuration will allow you to create a xAPI package that will send statements to the LRS of whichever xAPI enabled LMS you import it into. However, you have the option of sending statements to more than one LRS at a time. To demonstrate this, look for the two tiny circles in the screenshot above. Just delete the /* and the */ in the bottom of the tc-config.js, and when you launch your xAPI course, you’ll be generating statements to your LMS as well as to our public LRS. Make sure to check our public LRS after you’ve generated statements in this way. You can see your statements in your LMS and in our public LRS.

If you don’t delete the /* and */ as mentioned above, you’ll only generate statements to the LRS of the LMS that you imported your content to.

After you’ve made your modifications, save your file and move on to the next step.