danwrong / restler

REST client library for node.js
MIT License
1.99k stars 391 forks source link

putJson not working for me #199

Open oliwerhelsen opened 9 years ago

oliwerhelsen commented 9 years ago

Trying to use the putJson method but it not exist.

When i shoot the restler object in the console i get this:

{ Request: [Function: Request], Service: [Function: Service], request: [Function: request], service: [Function: service], get: [Function: get], patch: [Function: patch], post: [Function: post], put: [Function: put], del: [Function: del], head: [Function: head], json: [Function: json], postJson: [Function: postJson], parsers: { auto: { [Function] matchers: [Object] }, json: [Function] }, file: [Function], data: [Function] }

Any idea?

thepatron commented 9 years ago

I had this issue as well - i was able to solve it by updating to the latest version of restler. Try doing an 'npm install restler@3.2.2'. Hope this helps.