0
文檔提供了與取API簡單的例子:如何在Zapier代碼中提供基本的HTTP身份驗證?
fetch('http://example.com/')
.then(function(res) {
return res.text();
})
.then(function(body) {
var output = {id: 1234, rawHTML: body};
callback(null, output);
})
.catch(callback);
查詢數據。
如何在這些結構中添加標題或傳遞發佈數據?
[在zappier代碼基本HTTP認證]的可能的複製(https://stackoverflow.com/questions/45934030/basic-http-auth-in-zappier-code) – malditojavi