Shivtr

Videos

Videos let you share your favorite videos with your community. The Videos API lets you view, create, delete and restore videos.

Videos API
Fetch list of videos
GET /videos.json

Create new video
POST /videos.json

Show video 1000
PATCH /videos/1000.json

Delete video 1000
DELETE /videos/1000.json

Restore video 1000
PATCH /videos/1000/restore.json

Fetch list of video categories
GET /video_categories.json

Fetch list of videos in category 500
GET /video_categories/500.json


New or Edit Object
{
"video": {
"video_category_id": 500,
"name": "Guild Wars 2 Teaser",
"description": "Teaser video for GW2",
"youtube_id": "Em0Sd60iI2w"
}
}


List Object
{
"videos": [
{
"id": 1000,
"video_category_id": 500,
"name": "Guild Wars 2 Teaser",
"description": "Teaser video for GW2",
"youtube_id": "Em0Sd60iI2w",
"views": 450,
"created_on": "2013-07-22T02:34:24-04:00",
"member": {
"id": 4000,
"display_name": "Malkor"
}
}
]
}


Show Object
{
"video": {
"id": 1000,
"video_category_id": 500,
"name": "Guild Wars 2 Teaser",
"description": "Teaser video for GW2",
"youtube_id": "Em0Sd60iI2w",
"views": 450,
"created_on": "2013-07-22T02:34:24-04:00",
"member": {
"id": 4000,
"display_name": "Malkor"
}
}
}