fetch(“/wp-content/uploads/make-webhook.php”, {
method: “POST”,
headers: { “Content-Type”: “application/json” },
body: JSON.stringify({
“申込日”: “2025-07-28”,
“チェックイン日”: “2025-08-01”,
“予約番号”: “ABC123”,
“電話場号”: “090-1234-5678”
})
})
.then(res => res.text())
.then(text => console.log(“サーバーの返答:”, text))
.catch(err => console.error(“通信エラー:”, err));