wanireminder/api.js

9 lines
219 B
JavaScript
Raw Normal View History

2025-01-26 14:10:11 -05:00
export async function summary(token) {
let response = await fetch("https://api.wanikani.com/v2/summary", {
headers: {
"Authorization": `Bearer ${token}`
}
});
return await response.json();
}