danwrong / restler

REST client library for node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

putJson not working for me

oliwerhelsen opened this issue · comments

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?

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.