Skip to content

ooyala/node-ooyala-api-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NODE JS wrapper for OoyalaAPI client API (v2 fashion API with sha256 signing)


Usage:

var OoyalaApi = require("node-ooyala-api-client");



var apiKey = "foo";
var apiSecret = "foo secret";
var hostName = "localhost";
var hostPort = 3101;

var client = new OoyalaApi(apiKey, apiSecret, hostName, hostPort);

var headers = null;
var apiPath = "/test"
var queryStringParams = { foo: 1 };
var callbacksContext = {
 statusCallback : function(statusCode, responseHeader) { console.log(statusCode, responseHeader); },
 dataCallback : function(data) { console.log("Body is", data); },
 errorCallback : function(error) { console.log(error); }
}
client.get(headers, apiPath, queryStringParams, callbacksContext.statusCallback,
     callbacksContext.dataCallback, callbacksContext.errorCallback, callbacksContext);

var body = "hello world";

client.post(headers, apiPath, queryStringParams, body, callbacksContext.statusCallback,
     callbacksContext.dataCallback, callbacksContext.errorCallback, callbacksContext);

About

Ooyala API wrapper for Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published