Getting a List of Courses
AVAILABLE WITH BUSINESS SUBSCRIPTION
Method: getContent
- You will retrieve a list of course that were originally uploaded to the account. Content copied from other courses won't appear in the response.
The response contains only the original created or downloaded versions of courses and content.
Let's suppose that when creating Course B, you copied a quiz as a linked copy from Course A. Only the original quiz from Course A will be included in the response.
Note that the way you create the copy of the content is important:
- If it is a copy, then the data about the content will be shown in the response.
- If it is a linked copy, the information will not be shown.
- Learn how to get a list of all course modules in the Getting a List of Course Modules article.
Permissions to Run the Request
Account Owner, Account Administrators, Department Administrators, as well as Course Authors and users with a custom role with access to the project containing this course.
For users with a custom role, allow "View and enroll users into training programs."
Request Parameters
Parameter | Type | Description |
---|---|---|
token (required) | string | Access token. You can obtain a token by making a request. |
Return Value
After the request has been successfully processed, the system returns an object with the following properties:
Parameter | Type | Description |
---|---|---|
contentItem | array | An array containing a list of all account courses and information regarding them |
contentItemId | string | ID of the learning track, course, or content |
title | string | Title of the learning track, course, or content |
subtitle | string | Subtitle of the learning track, course, or content |
description | string | Description of the learning track, course, or content |
userId | string | ID of the user to whom the learning track, course, or content is assigned |
addedDate | dateTime | Date of addition of the learning track, course, or content |
viewUrl | string | Link to view the learning track, course, or content |
type | string | Type of content |
Sample Request
<?xml version="1.0" encoding="utf-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="https://schemas.xmlsoap.org/soap/envelope/"
xmlns="https://ispringlearn.com/go/services/api/soap">
<SOAP-ENV:Body>
<GetContentRequest>
<credentials>
<token>p-1sJDjmULL5DdpXPJTcbm4jVIaWVHvNmrjAxATRbNE</token>
</credentials>
</GetContentRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Sample Response
<SOAP-ENV:Envelope xmlns:SOAP-ENV="https://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://ispringlearn.com/go/services/api/soap">
<SOAP-ENV:Body>
<GetContentResult>
<contentItem>
<contentItemId>6a51a7b0-b4ec-11e9-8dc4-0a580af40990</contentItemId>
<title>Sample Simulation - Car Sale Dialog</title>
<subtitle>A course to improve your sales skills</subtitle>
<description>Things to remember when meeting a client.</description>
<userId>6eb2500c-b4ec-11e9-bd63-0a580af40990</userId>
<addedDate>2019-08-02T10:50:33+00:00</addedDate>
<viewUrl>https://myaccount.ispringlearn.com/view/100235-6cMak-YHbVg-aEFPv</viewUrl>
<type>Course</type>
</contentItem>
...
</GetContentResult>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>