Created
December 29, 2011 15:11
-
-
Save chrisconley/1534502 to your computer and use it in GitHub Desktop.
Example Limelight API Calls to Houdini
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create a task to create tags for a video | |
// | |
// POST https://v1.houdiniapi.com/tasks.json HTTP/1.1 | |
// Content-Type: application/json; charset=utf-8 | |
{ | |
"api_key": "[YOUR_API_KEY]", | |
"environment": "sandbox", | |
"postback_url": "http://limelight.com/houdini_postback/12345", | |
"blueprint": "houdini.limelight_open_ended_tags.1", | |
"input": { | |
"video_url": "http://cdn.limelight.com/video123.mp4" | |
} | |
} | |
// Example postback after tagging is complete | |
// | |
// POST 'http://limelight.com/houdini_postback/12345' HTTP/1.1 | |
// Content-Type: application/json; charset=utf-8 | |
{ | |
"id":"4e1bca7f286dde00010202b2", | |
"environment": "sandbox", | |
"postback_url": "http://limelight.com/houdini_postback/12345", | |
"blueprint": "houdini.limelight_open_ended_tags.1", | |
"input": { | |
"video_url": "http://cdn.limelight.com/video123.mp4" | |
} | |
"status":"finalized", | |
"output":{ | |
"tags":"Diane Sawyer; ABC News; Thanksgiving; New York" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create a task to create a video transcription | |
// | |
// POST https://v1.houdiniapi.com/tasks.json HTTP/1.1 | |
// Content-Type: application/json; charset=utf-8 | |
{ | |
"api_key": "[YOUR_API_KEY]", | |
"environment": "sandbox", | |
"postback_url": "http://limelight.com/houdini_postback/12345", | |
"blueprint": "houdini.limelight_dfxp_transcription.1", | |
"input": { | |
"video_url": "http://cdn.limelight.com/video123.mp4" | |
} | |
} | |
// Example postback after transcription is complete | |
// | |
// POST 'http://limelight.com/houdini_postback/12345' HTTP/1.1 | |
// Content-Type: application/json; charset=utf-8 | |
{ | |
"id":"4e1bca7f286dde00010202b3", | |
"environment": "sandbox", | |
"postback_url": "http://limelight.com/houdini_postback/12345", | |
"blueprint": "houdini.limelight_dfxp_transcription.1", | |
"input": { | |
"video_url": "http://cdn.limelight.com/video123.mp4" | |
} | |
"status":"finalized", | |
"output":{ | |
"dfxp":"<?xml version='1.0' encoding='UTF-8'?>..." | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment