Zapier の Zaper's Code を使用して HTTP POST を作成していますが、本文が空のようです。Zapier のドキュメントとNode-Fetchを確認しましたが、構文は正しいようですが、リクエストを調べると本文がないようです。
var testendpoint = 'http://example.com';
var payload = {
'data': [
{
'Date': 'dateparsed',
'Signups': '1'
}
],
'color': {
'Signups': '#2fd75b'
}
};
fetch(testendpoint, {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify(payload)
}).then(function(response) {
return response.text();
}).then(function(responsebody) {
var output = {response: responsebody};
callback(null, output);
}).catch(function(error) {
callback(error);
});