getList
Requête
Permet de récupérer la liste de tous les entrées en shiKomori. La réponse est retournée dans un array de string.
Endpoint
[Domain]/academy/api/v1/Dictionary/getListExemple
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,
"username ": username,
"password ": password
}
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Erreur :", error));Réponse
Description des champs
Champ
Type
Description
Valeur
Dictionary
Dictionary
Objet dictionnaire
list
array
Liste de mots
Mis à jour