GET api/v1/video
This method returns a paginated (20 per page) list of published videos.
Resource URL
https://<site>/api/v1/videos
Parameters
Name |
Parameter |
Description |
---|---|---|
format |
json, xml |
Output format |
Example Request
https://play.sunet.se.sunet.se/api/v1/video
import requests import json headers = { 'content-type': 'application/json', 'x-mds-username': '<username>', 'x-mds-api-key': '<key>' } requests.get('https://play.sunet.se/api/v1/video', headers=headers, verify=True)
Result
{ "meta": { "previous": null, "total_count": 20, "offset": 0, "limit": 20, "next": null }, "objects": [ { "description": "", "title": "History of Computing", "thumbnail": "/site_media/img/thumbnails/sunet_1.jpg", "site": "/api/v1/site/2/", "lastupdated": "2011-10-20T00:44:27.558310", "id": "1", "runningtime": "00:14:09", "published": true, "public": false, "playurl": "/api/v1/playurl/1/", "resource_uri": "/api/v1/video/1/" }, { "description": "A movie", "title": "A movie", "thumbnail": "/site_media/img/thumbnails/sunet_32.jpg", "site": "/api/v1/site/2/", "lastupdated": "2011-10-26T19:31:46.874083", "id": "32", "runningtime": "00:38:09", "published": true, "public": false, "playurl": "/api/v1/playurl/32/", "resource_uri": "/api/v1/video/32/" }, ... ] }