1export function myApi(name) {
2 return "hi " + name;
3}
1export let hiapi = (a) => {
2 console.log(a);
3 return [...new Array(100)].map((_, i) => {
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
2
3export let wee2 = fetchJSON(
4 "https://api.val.town/express/@val.wee1",
5 {
6 method: "POST",
1export function myApi(name) {
2 return "hi " + name;
3}
3
4export async function getInformationOfTheGitHubReposiroty(repository) {
5 return await fetchJSON(`https://api.github.com/repos/${repository}`, {
6 headers: {
7 Accept: "application/vnd.github+json",
8 Authorization: `Bearer ${process.env.githubToken}`,
9 "X-GitHub-Api-Version": "2022-11-28",
10 },
11 })
2
3export async function coolHnPosts(id) {
4 return fetch("https://hn.algolia.com/api/v1/search_by_date?tags=author_" + id)
5 .then((res) => res.json())
6 .then((res) => res.hits[0].comment_text);
1export function myApi(name) {
2 return "yo " + name;
3}