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