Google Product の製品のクエリから返されたデータの解析に問題があります。次のようなクエリを実行すると...
curl --header "Authorization:GoogleLogin Auth=<AuthKey>" --header "Content-Type:application/atom+xml" https://content.googleapis.com/content/v1/8076653/items/products/generic?alt=json
これにより、次のような JSON(ish?) ドキュメントを受け取ります。
{
"version":"1.0",
"encoding":"UTF-8",
"feed":{
...
}
}
しかし、次を実行すると
res.on('end', function() {
console.log(res.body.feed);
mainRes.send(res.body);
});
コンソールには未定義と表示されます。