To get a list of all courses that are assigned to a user, send GET request to URL: /user/<userId>/assigned_content.
Permission to run the request: Account Owner, Administrator, Organization Administrator, Publisher.
Parameter | Description |
---|
X-Auth-Account-Url (required) | Base URL of the account, e.g. http://myaccount.ispringlearn.com |
X-Auth-Email (required) | Administrator e-mail address. |
X-Auth-Password (required) | Administrator password. |
Possible Response Codes
Code | Text | Description |
---|
200 | Ok | The request has been processed successfully. |
404 | Unknown user | Can't find the user with the specified ID. |
403 | Permission denied | Your user does not have permissions to perform the requested action. |
Sample Request
GET /user/123/assigned_content HTTP/1.1
Host: api.ispringonline.com
X-Auth-Account-Url: http://myaccount.ispringlearn.com
X-Auth-Email: email@email.com
X-Auth-Password: password
XML
Sample Response
HTTP/1.1 200 OK
<?xml version="1.0" encoding="UTF-8"?>
<content>
<contentItem>
<contentItemId>11</contentItemId>
<title>Sample Course</title>
<addedDate>2017-07-21T06:28:55+00:00</addedDate>
<dueDate>2017-07-22</dueDate>
<viewUrl>http://myaccount.ispringlearn.com/view/11</viewUrl>
<parentId>1</parentId>
<viewStatus>Not Started</viewStatus>
<viewProgress>0</viewProgress>
<completionDate>2017-07-22</completionDate>
<type>Course</type>
</contentItem>
<contentItem>
<contentItemId>22</contentItemId>
<title>Sample Video</title>
<addedDate>2017-08-22T11:06:31+00:00</addedDate>
<dueDate>2017-08-23</dueDate>
<viewUrl>http://myaccount.ispringlearn.com/view/11</viewUrl>
<parentId>1</parentId>
<viewStatus>Complete</viewStatus>
<viewProgress>100</viewProgress>
<completionDate>2017-08-23</completionDate>
<type>Video</type>
</contentItem>
</content>
XML