To get a complete list of all folders and courses in your account, send a GET request to the URL /courses_tree.
Permission to run the request: Account Owner, Administrator, Organization Administrator, Publisher.
Request Headers
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 | Body | Description |
---|
200 | Ok | <Xml code of successful response> | The request has been processed successfully |
403 | Forbidden | Permission denied | User is now allowed to handle the requested action (not enough permissions). |
401 | Unauthorized | <Empty response body> | Authorization failed. |
Sample Request
GET /courses_tree 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>1</contentItemId>
<title>Content List</title>
<type>Folder</type>
<addedDate>2017-02-22T19:52:31+03:00</addedDate>
</contentItem>
<contentItem>
<contentItemId>5</contentItemId>
<title>My Documents</title>
<type>Folder</type>
<addedDate>2017-02-22T19:54:50+03:00</addedDate>
<viewUrl>http://myaccount.ispringlearn.com/view/4-p4MHJ-H7YQK-AUGBz</viewUrl>
<parentId>1</parentId>
</contentItem>
<contentItem>
<contentItemId>6</contentItemId>
<title>One Slide</title>
<type>Presentation</type>
<addedDate>2017-02-22T20:05:33+03:00</addedDate>
<viewUrl>http://myaccount.ispringlearn.com/view/4-9DQZp-vYojm-izSdp</viewUrl>
<parentId>5</parentId>
</contentItem>
</content>
XML