9 lines
219 B
JavaScript
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();
|
|
} |