getLexicon
Requête
Endpoint
[Domain]/academy/api/v1/Dictionary/getLexiconBody
{
"letter" : "a",
"fromLanguage" : "km",
"toLanguage" : "fr"
}const endpoint = "[endpoint]";
const apiKey = "[myAPIKey]";
// Use the username and password to obtain data based on user rights
const username = "[username]"; // optionnel
const password = "[password]"; // optionnel
fetch(endpoint, {
method: "POST",
headers: {
"Authorization": apiKey,
"Content-Type": "application/json",
"username ": username,
"password ": password
},
body: JSON.stringify({
letter: "a",
fromLanguage: "km",
toLanguage: "fr"
})
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Erreur :", error));
Champ
Type
Description
Valeur
Réponse
Champ
Type
Description
Mis à jour