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:
<script>
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: skilljarUser.id, skilljarPublishedCourseId: skilljarCourse.publishedCourseId, skilljarLessonId:skilljarCourse.lesson.id})});
}
</script>
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.