...
| Panel | ||
|---|---|---|
| ||
Notes:
|
...
Department Administrators, Course Authors, and users with a custom role can only retrieve info regarding users belonging to the departments they manage and their sub-departments.
Request Parameters
Parameter | Type | Description |
|---|---|---|
| token (required) | string | Access token. You can obtain a token by making a request. |
| contentItemId (required) | string | The course ID. |
| pageSize (optional) | string | The number of entries per page. If not indicated, equal to 1000. |
| pageToken (optional) | string | The token needed to continue to the next page. |
Return Values
After the request is successfully processed, the system returns an object with the following properties:
| Parameter | Type | Description |
|---|---|---|
| modules | array | An array containing a list of all content items of all account courses or of certain courses. |
| module | array | An array containing information about the content item. |
| moduleId | string | The content item ID. |
| contentItemId | string | The content item ID. |
| courseId | string | The ID of the course to which the content item belongs. |
| title | string | The name of the content item. |
| description | string | The description of the content item. |
| authorId | string | The ID of the content’s author. |
| addedDate | dateTime | The creation date of the content item. |
| viewUrl | string | The link to view the content. |
| nextPageToken | string | The key needed to continue to the next page. |
Possible Errors
| Error | Description |
|---|---|
| Unknown content item | The course with the indicated ID was not found. |
| Permission denied | The user doesn't have permission to complete the request or can't edit the content item. |
Sample Request
| Code Block | ||
|---|---|---|
| ||
<?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>
<Header/>
<Body>
<ListCoursesModulesRequest>
<credentials>
<token>p-1sJDjmULL5DdpXPJTcbm4jVIaWVHvNmrjAxATRbNE</token>
</credentials>
<courseIds>
<id>296773a6-4196-11ea-bc3a-0a580af40727</id>
</courseIds>
<pageToken>YTQ3NmQ4ZTQtNDE5YS0xMWVhLTkwYmMtMGE1ODBhZjQwNzI3</pageToken>
<pageSize>5</pageSize>
</ListCoursesModulesRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope> |
...