PandaStream API ColdFusion Wrapper

On November 11, 2011, in ColdFusion, Railo, by Anuj Gakhar

In my recent project, one of my tasks is to encode videos in multiple formats. And we decided to use PandaStream for the job. PandaStream is a flexible and highly scalable cloud video encoding API. Here is en entire list of their supported file formats.

They seem to have a fairly decent REST API, which obviously means that in order to consume it, I had to write a API wrapper. So, I did 🙂 The code is available on github.

Here is some sample usage on how you can use the API client :-

To initialise the CFC, you pass in the required parameters :-

[cf]ACCESS_KEY = "access_key";
SECRET_KEY = "secret_key";
CLOUD_ID = "cloud_id";

panda = createObject("com.anujgakhar.PandaStreamAPI").init(

A Sample GET Request


A Sample DELETE Request


A Sample PUT Request

[cf]params = {}; = "updated_from_api";
panda.put(‘/clouds/#CLOUD_ID#.json’, params);[/cf]

A Sample POST Request

[cf]params = {};
params.source_url = "";
newVideo =‘/videos.json’, params);[/cf]


Tagged with:  

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

© 2011 Anuj Gakhar