constendpoint="[endpoint]";constapiKey="[myAPIKey]";// Use the username and password to obtain data based on user rightsconstusername="[username]"; // optionnelconstpassword="[password]"; // optionnelfetch(endpoint, { method:"POST", headers: {"Authorization": apiKey,"Content-Type":"application/json","username ": username,"password ": password }, body:JSON.stringify({"size":3,"toLanguage":"fr" })}).then(response =>response.json()).then(data =>console.log(data)).catch(error =>console.error("Erreur :", error));