1export function myApi(name) {
2 return "hi " + name;
3}
11 "https://deno.land/x/deno_dom/deno-dom-wasm.ts"
12 );
13 const searchUrl = `https://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=${encodeURIComponent(
14 searchQuery
15 )}&srwhat=text&format=json&utf8=1&origin=*`;
20 }
21 const pageTitle = searchData.query.search[0].title;
22 const contentUrl = `https://en.wikipedia.org/w/api.php?action=query&prop=extracts&exintro&titles=${encodeURIComponent(
23 pageTitle
24 )}&format=json&utf8=1&origin=*`;
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}
1export const count = (async () => {
2 let count = 0;
3 function myApi() {
4 return count++;
5 }
2
3export async function githubStars(username) {
4 let res = await fetch(`https://api.github.com/users/${username}/starred`);
5 return await res.json();
6}
1export function myApi(name) {
2 return "hi " + name;
3}
5 username,
6 headers: {
7 "X-GitHub-Api-Version": "2022-11-28",
8 },
9 });
16}) =>
17 fetchJSON(
18 `https://api.telegram.org/bot${botToken}/sendPhoto`,
19 {
20 method: "POST",