Using ION to complete lessons via API

  • Updated

If you are looking to write your own api calls, check out - 

Marking Lessons as Complete from External Services

ION Interactive

To pass the user, course, and lesson ID, these parameters should be added to the hyperlink that launches the ION experience.

First, paste this into the Global Code Snippet area of your theme:

if ((typeof skilljarUser != "undefined") && (typeof skilljarCourse != "undefined") && (typeof skilljarCourse.lesson != "undefined") && (typeof skilljarCourse.publishedCourseId != "undefined")) {
$('a.ionlink').each(function() {this.href = appendQueryString(this.href, {skilljarUserId:, skilljarPublishedCourseId: skilljarCourse.publishedCourseId,})});

To launch the ION experience, add class="ionlink" to the hyperlinks in your text lesson as follows:

<a href="..." class="ionlink">

Finally, work with your ION account manager for the appropriate triggers in the ION content to call the Skilljar API.

Was this article helpful?

0 out of 0 found this helpful