From 4a4962929a7515dc9f7e8b82e1b70bd82527cc26 Mon Sep 17 00:00:00 2001 From: Philipp Date: Mon, 14 Oct 2024 22:48:14 +0200 Subject: [PATCH] sync --- Ramses/home/firstFile.txt | 1 + Ramses/home/testAPI.js | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 Ramses/home/firstFile.txt create mode 100644 Ramses/home/testAPI.js diff --git a/Ramses/home/firstFile.txt b/Ramses/home/firstFile.txt new file mode 100644 index 0000000..c57eff5 --- /dev/null +++ b/Ramses/home/firstFile.txt @@ -0,0 +1 @@ +Hello World! \ No newline at end of file diff --git a/Ramses/home/testAPI.js b/Ramses/home/testAPI.js new file mode 100644 index 0000000..7410ffa --- /dev/null +++ b/Ramses/home/testAPI.js @@ -0,0 +1,11 @@ +/** @param {NS} ns */ +export async function main(ns) { + let data = await (await fetch('https://n8n.goetje-ing.de/webhook/21ea55b7-56c6-4e73-b6b7-c733735c1289', { + method: 'POST', + headers: { + 'authentication': 'Secret', + 'Content-Type': 'application/json' + },body: JSON.stringify({"statement":false}) + })).json() + ns.tprint(data) +} \ No newline at end of file