SCORM API

SCORM API

mod_scorm_get_scorm_user_data

This function retrieves detailed user tracking data for a specific attempt on a SCORM package.

Let's review the POST parameters for this function:

  1. Required Parameters:
    • scormid= int (Required: The numeric instance ID of the SCORM activity.)
    • attempt= int (Required: The specific attempt number to retrieve data for, e.g., 1 for the first attempt.)
  2. Important Note:
    • This function retrieves data for the user whose API token is making the request. To get data for a different user, you would need to use a token associated with that user or an admin token with the appropriate permissions.

cURL Command Example (Getting SCORM User Data):

curl "https://courses.yoursite.com/webservice/rest/server.php?wstoken=XXXXXXXXXXXXXXX" \
-d "wsfunction=mod_scorm_get_scorm_user_data" \
-d "scormid=654" \
-d "attempt=1"
    • Related Articles

    • Grades API

      gradereport_overview_get_course_grades This function retrieves an overview of all final course grades for a specific user. Let's review the POST parameters for this function: Optional Parameter: userid= int (Optional: The numeric ID of the user. If ...
    • User API

      core_user_create_users We advise the use of a developer to help you setup your API connection. This example shows how to create new users. Let's review the POST parameters for this function: Required Parameters: users[0][username]= string (Required: ...
    • Generate your API Key

      Step 1: Click on "Site admin" > "Integrations" > "Manage tokens": Step 2: Click on "Create Token": Step 3: (1) Select the user you wish to give the API Token to, (2) Select "API" then (3) Save: Step 4: Share this token with the user or save it if ...
    • Setting Up Your API

      We advise the use of a developer to help you setup your API connection. We will offer an example of how to CREATE A NEW USER on your LMS using a cURL command. Let's review the required POST parameters for the core_user_create_users function: ...
    • Calendar API

      core_calendar_create_calendar_events This function is used to create new calendar events. You can create events for a user, a course, or a group. Let's review the POST parameters for this function: Required Parameters: events[0][name]= string ...