Hi, can someone help me call the following question by POST in homey pro?
const res = await fetch("https://libretranslate.com/translate", {
method: "POST",
body: JSON.stringify({
q: "test",
source: "pl",
target: "en",
format: "text",
api_key: ""
}),
headers: { "Content-Type": "application/json" }
});
console.log(await res.json());
and extract the “test” response from the API response
{
"translatedText": "test"
}