Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add video resource

  • Loading branch information...
commit 4df816d6a2645211786abdff3d3e41367548d91e 1 parent 94d58d3
@ksheurs ksheurs authored
Showing with 36 additions and 1 deletion.
  1. +36 −1 13_Videos.md
View
37 13_Videos.md
@@ -35,7 +35,42 @@ $ curl -X GET -H "Authorization: Bearer <access_token>" \
{ "language": "Chinese", "uri": "https://api.vhx.tv/videos/2", "type": "video" }
],
"files": [{
-
+ "id": 1,
+ "uri": "https://api.vhx.tv/files/1",
+ "size": 6499306723,
+ "quality": "1080p",
+ "format": "mp4",
+ "method": "progressive"
}]
}
```
+
+### Video Files
+
+To retrieve just the files available for a video, see the call below:
+
+**Definition:**
+
+```text
+GET /videos/:id/files
+```
+
+**Request:**
+
+```bash
+$ curl -X GET -H "Authorization: Bearer <access_token>" \
+ "https://api.vhx.tv/videos/:id/files"
+```
+
+**Response:**
+
+```json
+[{
+ "id": 1,
+ "uri": "https://api.vhx.tv/files/1",
+ "size": 6499306723,
+ "quality": "1080p",
+ "format": "mp4",
+ "method": "progressive"
+}]
+```
Please sign in to comment.
Something went wrong with that request. Please try again.