wanireminder/api.js
2025-01-26 13:10:11 -06:00

9 lines
219 B
JavaScript

export async function summary(token) {
let response = await fetch("https://api.wanikani.com/v2/summary", {
headers: {
"Authorization": `Bearer ${token}`
}
});
return await response.json();
}