2function fetchRandomJoke() {
3 const response = fetch(
4 "https://official-joke-api.appspot.com/random_joke",
5 );
6 return response;
43async function fetchRandomJoke() {
44 const response = await fetch(
45 "https://official-joke-api.appspot.com/random_joke",
46 );
47 return response.json();
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
7 );
8 return response.json();
3async function fetchRandomJoke() {
4 const response = await fetch(
5 "https://official-joke-api.appspot.com/random_joke",
6 );
7 return response.json();
5 let weather = queryAQI("beijing");
6 let push = fetchJSON(
7 "https://api.day.app/UadTW6YQF2ceiAxypDgHe/Body",
8 );
9})();
146 font-size: 1rem;
147 font-family: var(--main-font);
148 text-transform: capitalize;
149 display: flex;
150 align-items: center;
146 font-size: 1rem;
147 font-family: var(--main-font);
148 text-transform: capitalize;
149 display: flex;
150 align-items: center;
25 <head>
26 <title>SQLite Explorer (dev)</title>
27 <link rel="preconnect" href="https://fonts.googleapis.com" />
28
29 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
30 <link
31 href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap"
32 rel="stylesheet"
33 />
13## Authentication
14
15Login to your SQLite Explorer with [password authentication](https://www.val.town/v/pomdtr/password_auth) with your [Val Town API Token](https://www.val.town/settings/api) as the password.
16
17## Todos / Plans
49
50 const response = await pushover({
51 token: Deno.env.get("PO_API_TOKEN")!,
52 user: Deno.env.get("PO_USER_KEY")!,
53 title,
58 console.log("Notified: ", response);
59 } catch (err) {
60 console.error("Error scraping newsletter ", err);
61 }
62};
1export function myApi(data) {
2 return "hi " + data.name;
3}