Web services AWS Lambda web服务调用
我设法在Lambda中实现了以下功能(没有抛出错误),但是我如何才能看到实际的响应jsonWeb services AWS Lambda web服务调用,web-services,api,amazon-web-services,web,aws-lambda,Web Services,Api,Amazon Web Services,Web,Aws Lambda,我设法在Lambda中实现了以下功能(没有抛出错误),但是我如何才能看到实际的响应json var https = require('https'); exports.handler = function (event, context) { https.get('https://www.quandl.com/api/v3/datasets/FRED/M12015USM144NNBR.json? api_key=XXXXXXXXXXXXXXXX', function (result) {
var https = require('https');
exports.handler = function (event, context) {
https.get('https://www.quandl.com/api/v3/datasets/FRED/M12015USM144NNBR.json? api_key=XXXXXXXXXXXXXXXX', function (result) {
console.log('Success, with: ' + result.statusCode);
context.done(null);
}).on('error', function (err) {
console.log('Error, with: ' + err.message);
context.done("Failed");
});
};
嗯。。。(结果)不是和数据事件的请求-响应一起包含的对象一起返回吗
您想在哪里“看到”它?它位于结果
对象中。记录它或将它传递给context.done()
函数。