import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
export const fetchReadwiseList = async (
token: string,
location: "new" | "later" | "archive" | "feed",
) => {
return fetchJSON(
`https://readwise.io/api/v3/list?location=${location}`,
{
headers: {
"Authorization": `Token ${token}`,
},
},
);
};