Search
Code212
repo: string; }; const markdown = await fetch(`https://api.github.com/repos/${repo}/readme`) .then((res) => res.json()).then(({ content }) => atob(content)); const html = await fetch("https://api.github.com/markdown", { method: "POST", headers: {
} const githubEvents = await fetchJSON( "https://api.github.com/users/daviddkkim/events", ) as Data; //early return if no github events
export async function githubFollowers() { let followers = await fetchJSON( "https://api.github.com/users/stungeye/followers", ); return followers;
// Github profileexport let githubUser = fetchJSON( "https://api.github.com/users/stevekrouse");
export async function githubNotifications() { const res = await fetch("https://api.github.com/notifications?all=true", { headers: { Authorization: `Bearer ${process.env.GH_TOKEN}`,
// GitHub reposexport let githubRepos = fetchJSON( "https://api.github.com/users/stevekrouse/repos");
// Github followingexport let githubFollowing = fetchJSON( "https://api.github.com/users/stevekrouse/following");
// Github followingexport let githubFollowing = fetchJSON( "https://api.github.com/users/stevekrouse/following");
// Github profileexport let githubUser = fetchJSON( "https://api.github.com/users/stevekrouse");
console.log("access_token: ", data); // // Fetch user information using the access token const userResponse: any = await fetch("https://api.github.com/user", { headers: { "Authorization": `Bearer ${accessToken}`,