Code Monkey home page Code Monkey logo

node-ooyala-api-client's People

Contributors

patprzybilla avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-ooyala-api-client's Issues

ooyala api returns 400 invalid signature on POST

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."}

Adding PATCH to the client.

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)
},

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.