Seitenhistorie
...
Codeblock | ||||||
---|---|---|---|---|---|---|
| ||||||
local fetch = require("fetch") local response = fetch.get("https://v2.jokeapi.dev/joke/Any?lang=de&format=txt&type=single&safe-mode") print(response.body) |
...
Codeblock | ||||||
---|---|---|---|---|---|---|
| ||||||
local fetch = require("fetch") local response = fetch.post( "https://webhook.site/...", -- TODO: URL mit ID einfügen oder besser: Im Formular als Feld einfügen { contentType = "application/json", data = "Test eines POST Request im User-Script mit fetch.post" } ) |
...