ooyala / node-ooyala-api-client Goto Github PK
View Code? Open in Web Editor NEWOoyala API wrapper for Node.js
Ooyala API wrapper for Node.js
Hey there
I am trying to create assets using the wrapper but I cant pass the signature challange.
{ api_key: '15Y3E6NbxVLo2xTPCDLwz2ud2_Aj.pgWiH',
expires: 1359546916910,
signature: 'I2X/+bFJ95hZiX6VNUwjBwsGdfpydAJdtQaYTMxWtmQ=' }
{ host: 'api.ooyala.com',
port: '80',
path: '/v2/assets?api_key=15Y3E6NbxVLo2xTPCDLwz2ud2_Aj.pgWiH&expires=1359546916910&signature=I2X%2F%2BbFJ95hZiX6VNUwjBwsGdfpydAJdtQaYTMxWtmQ%3D',
headers:
{ 'Content-length': 113,
HTTP_X_API_KEY: '15Y3E6NbxVLo2xTPCDLwz2ud2_Aj.pgWiH',
'X-API-KEY': '15Y3E6NbxVLo2xTPCDLwz2ud2_Aj.pgWiH' },
method: 'POST' }
400 '{"status":"400 Bad Request","content-type":"application/json","ooyala-server-id":"i-38e3a140","ooyala-request-id":"60f4a8b1ec8489d17e5639a585ae9038","content-length":"32","accept-ranges":"bytes","date":"Wed, 30 Jan 2013 12:00:00 GMT","x-varnish":"2156404367","age":"0","via":"1.1 varnish","connection":"close","x-varnish-cache":"MISS"}'
Body is {"message":"Invalid signature."}
Its less an issue but more an improvement. I ve tested PATCH and PUT request to push metadata and being able to update the assets via the client and it seems to work.
so at line 21 - 35 I ve got and its working as expected. Could you commit it so we dont have to patch the module?
OO._.extend(OoyalaApiClient.prototype, {
post: function(headers, apiPath, params, body, statusCb, dataCb, errCb, context) {
this._curl('POST', headers, apiPath, params, body, statusCb, dataCb, errCb, context);
},
put: function(headers, apiPath, params, body, statusCb, dataCb, errCb, context) {
this._curl('PUT', headers, apiPath, params, body, statusCb, dataCb, errCb, context);
},
get: function(headers, apiPath, params, statusCb, dataCb, errCb, context) {
this._curl('GET', headers, apiPath, params, null, statusCb, dataCb, errCb, context)
},
patch: function(headers, apiPath, params, body, statusCb, dataCb, errCb, context) {
this._curl('PATCH', headers, apiPath, params, body, statusCb, dataCb, errCb, context)
},
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.