Pearson
Always Learning

Content Extensions are a JavaScript library available from within LearningStudio's Visual Editor (rich text editor) that exposes information about the course and the user. They are not RESTful API requests, but rather a way to create dynamic text using client-side AJAX or JavaScript. The Context Extensions leverage the course context to retrieve information about the course itself or about a user that is logged into that course in order to create dynamic text that is specific to the user and or the course

For example, you might use this API to display a custom welcome message such as "Hello John, your Chapter 1 Reading Assignment is due today."

The Content Extensions APIs can only be invoked from within a course the user is accessing and cannot be called outside of the LearningStudio User Interface. You do not need to include course or user identification in the URL when making the request, as this information is taken from the User Interface session.

Note: This is the only data that can be dynamically included inside the visual editor. The RESTful Course APIs cannot be called from inside LearningStudio.

Important: If you are using the Content APIs to retrieve content, the JavaScript will be included in the Text/Multimedia content but it will not be functional.

5105 reads
Always Learning
Pearson