with video attachments
GET /v1/:school_id/current_user/courses/:id/attachments
Parameters
| Name |
Description |
|
school_id
|
school_id
|
|
id
|
id
|
Request
Headers
Route
GET /v1/600/current_user/courses/324/attachments
Query Parameters
{}:
cURL
curl "http://localhost:3000/v1/600/current_user/courses/324/attachments" -X GET \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Client-Token: mobile" \
-H "Sso-Token: 45ucspRcrzTi_xHo8xXz" \
-H "Host: api.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"attachments": [
{
"id": 92,
"name": "small.mp4",
"host": "wistia",
"host_id": "0j4jh5zobq",
"kind": "video",
"downloadable": false,
"url": "https://embed-ssl.wistia.com/deliveries/e7bd6bc383ec0a4b7ac167c0f2f4248af3668929.bin",
"text": null,
"duration": 0,
"attachable_type": "Lecture",
"attachable_id": 87,
"is_published": true,
"position": null,
"thumbnail_url": null,
"large_thumbnail_url": null,
"created_at": "2019-10-31T22:08:35Z",
"updated_at": "2019-10-31T22:08:35Z",
"file_size": 0,
"file_extension": "avi",
"quiz": null,
"captions": [
],
"comments": [
]
},
{
"id": 91,
"name": "small.mp4",
"host": "wistia",
"host_id": "0j4jh5zobq",
"kind": "video",
"downloadable": false,
"url": "https://embed-ssl.wistia.com/deliveries/e7bd6bc383ec0a4b7ac167c0f2f4248af3668929.bin",
"text": null,
"duration": 0,
"attachable_type": "Lecture",
"attachable_id": 87,
"is_published": true,
"position": null,
"thumbnail_url": null,
"large_thumbnail_url": null,
"created_at": "2019-10-31T22:08:35Z",
"updated_at": "2019-10-31T22:08:35Z",
"file_size": 0,
"file_extension": "avi",
"quiz": null,
"captions": [
],
"comments": [
]
}
]
}