Getting Course Info
AVAILABLE WITH BUSINESS SUBSCRIPTION
Method: getContentItem
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 |
---|---|---|
addedDate | dateTime | Course addition date |
contentItem | array | An array containing information regarding the course |
contentItemId | string | Course ID |
description | string | Course description |
title | string | Course title |
subtitle | string | Course subtitle |
type | string | Content type |
userId | string | ID of the Account Administrator who assigned the course |
viewUrl | string | Link to view the course |
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>
<GetContentItemRequest>
<credentials>
<token>p-1sJDjmULL5DdpXPJTcbm4jVIaWVHvNmrjAxATRbNE</token>
</credentials>
<contentItemId>6a51a7b0-b4ec-11e9-8dc4-0a580af40990</contentItemId>
</GetContentItemRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
XML
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>Sales Strategy</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>
XML