HeyWatch Developers

CoreAPI: DownloadVideoFormatJobEncoded VideoAccount

Video Resource

The Video resource lets you get information about an Video, get complete specs. The Video is created when a Download.

Get all the Videos

GET /video.(xml|json)

With the cURL command:

curl -u username:passwd https://heywatch.com/video.json
[
  {
    "created_at": "2011-02-09T17:44:35+01:00",
    "title": "lgczqhiAXT1qcoe1a",
    "specs": {
      "audio": {
        "sample_rate": 44100,
        "synched": false,
        "stream": 0.1,
        "codec": "wmav2",
        "bitrate": 128,
        "channels": 0
      },
      "size": 208,
      "thumb": "http://188.165.249.52/68a4f512d0ad0ff325727c72f21b41a2/3928279.jpg",
      "mime_type": "video/x-ms-asf;",
      "video": {
        "stream": 0.0,
        "codec": "wmv3",
        "container": "asf",
        "aspect": 1.33,
        "bitrate": 330,
        "height": 240,
        "length": 5,
        "fps": 0.0,
        "width": 320,
        "rotation": 0
      }
    },
    "updated_at": "2011-02-09T17:44:35+01:00",
    "id": 7863245
  }
]

Get information about a specific Video

GET /video/ID.(xml|json)

With the cURL command:

curl -u username:passwd https://heywatch.com/video/7863245.json
{
  "created_at": "2011-02-09T17:44:35+01:00",
  "title": "lgczqhiAXT1qcoe1a",
  "specs": {
    "audio": {
      "sample_rate": 44100,
      "synched": false,
      "stream": 0.1,
      "codec": "wmav2",
      "bitrate": 128,
      "channels": 0
    },
    "size": 208,
    "thumb": "http://188.165.249.52/68a4f512d0ad0ff325727c72f21b41a2/3928279.jpg",
    "mime_type": "video/x-ms-asf;",
    "video": {
      "stream": 0.0,
      "codec": "wmv3",
      "container": "asf",
      "aspect": 1.33,
      "bitrate": 330,
      "height": 240,
      "length": 5,
      "fps": 0.0,
      "width": 320,
      "rotation": 0
    }
  },
  "updated_at": "2011-02-09T17:44:35+01:00",
  "id": 7863245
}

Delete a video

DELETE /video/ID.(json|xml)

curl -i -u username:passwd -X DELETE "http://heywatch.com/video/7863245.json"

HTTP/1.1 204 No Content
Server: nginx/0.5.32
Date: Thu, 10 Feb 2011 11:10:46 GMT
Connection: close
Status: 204
X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.0
X-UA-Compatible: IE=Edge,chrome=1
X-Runtime: 0.015292
Set-Cookie: _session_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx; path=/; expires=Sat, 12-Feb-2011 11:31:11 GMT
Cache-Control: no-cache

Get the binary file

GET /video/ID.bin

If you want to download the Video yourself, use the special extension .bin.

With the cURL command:

curl -i -u username:passwd http://heywatch.com/video/7863245.bin

HTTP/1.1 302 Found
Server: nginx/0.5.32
Date: Thu, 10 Feb 2011 10:57:10 GMT
Content-Type: application/force-download; charset=utf-8
Transfer-Encoding: chunked
Connection: close
Status: 302
X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.0
X-UA-Compatible: IE=Edge,chrome=1
Location: http://188.165.249.52/d6f602813495c1d939efdf66aba687ac/3928279
X-Runtime: 0.008653
Set-Cookie: _session_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxx; path=/; expires=Sat, 12-Feb-2011 11:17:36 GMT
Cache-Control: no-cache