...
| Panel | ||
|---|---|---|
| ||
Notes:
|
...
Request Headers and Parameters
Header | Description |
|---|---|
| Authorization (required) | Access token. You can obtain a token by making a request. |
| Parameter | Description |
| courseIds (optional) | An array of IDs of the courses which results you want to retrieve. |
| pageSize (optional) | The number of entries per page. If not indicated, equal to 1000. |
| pageToken (optional) | The token to continue to the next page. |
Response Headers
Header | Description |
|---|---|
| modules | An array containing a list of all content items of all account courses or of certain courses. |
| module | An array containing information about the content. |
| moduleId | The module ID. |
| contentItemId | The content item ID. |
| courseId | The ID of the course to which the content item belongs. |
| title | The name of the content item. |
| description | The description of the content item. |
| authorId | The ID of the content item’s author |
| addedDate | The creation date of the content item. |
| viewUrl | The link to view the content. |
| nextPageToken | The token needed to continue to the next page. |
Response Codes
Code | Text | Description |
|---|---|---|
| 200 | Ok | The request has been successfully processed. |
| 400 | Bad request | A request error. |
| 401 | Unauthorized | An authorization error. |
| 403 | Permission denied | The user doesn't have enough permissions to run the request or can't edit the content item. |
Sample Request
| Code Block | ||
|---|---|---|
| ||
GET/courses/modules?courseIds[]=2a06bb18-41a1-11ea-b641-0a580af40727&pageSize=1000&pageToken=Mg https/1.1 Host: api-learn.ispringlearn.com Authorization: p-1sJDjmULL5DdpXPJTcbm4jVIaWVHvNmrjAxATRbNE |
...