Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

GET api/v1/video/<id>

This method returns data associated with a specific video.

Resource URL

https://<site>/api/v1/video/<id>

Parameters

Name      

Parameter        

Description

format

json, xml

Output format

Example Request

https://play.sunet.se/api/v1/video/1

Code Block
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/1', headers=headers, verify=True)

Result

Code Block
{
    "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/videoplayurl/1/", 
    "resource_uri": "/api/v1/video/1/"
}