body is null when rest builder invoke..
var testdata = { name: 'Kobe', age: '38' }; var tostr = JSON.stringify(testdata); var access_token = 'xxxxxxx';
var restbuilder = require("loopback-connector-rest");
var builder = new restbuilder('POST','https://
builder.invoke(processResponse);
when builder invoke, I found the body is null by debug, who knows what is wrong? Thanks.
Since you have the Content-Type set to application/json, the body should be a json object without stringify.
Hi raymondfeng, thanks very much! I will try it.
Yes, It works. Thanks.