1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2import { getGoogleAccessTokenFromRefreshToken } from "https://esm.town/v/mihir/getGoogleAccessTokenFromRefreshToken";
3
8 const from = emails.join(" OR ");
9
10 return fetchJSON(
11 "https://gmail.googleapis.com/gmail/v1/users/me/settings/filters",
12 {
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3// Activity suggestions for when you're bored
4export let boredActivities = fetchJSON('https://www.boredapi.com/api/activity')
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function fetchTimeline(url, options) {
4 // const tweetId = url.match(/\/(\d*)\?+/)[1];
5 // const tweetUrl =
6 // `https://cdn.syndication.twimg.com/tweet-result?id=${tweetId}&lang=en`;
7 // return { url, tweetId, tweetUrl };
8 const res = await fetch(
9 "https://syndication.twimg.com/srv/timeline-profile/screen-name/patttten",
10 // "https://cdn.syndication.twimg.com/timeline/profile?screen_name=patttten",
1import { fetch } from "https://esm.town/v/std/fetch";
2import process from "node:process";
3
6 res: express.Response,
7) {
8 let response = await fetch("https://api.onepeloton.com/auth/login", {
9 method: "POST",
10 mode: "no-cors",
1import { fetch } from "https://esm.town/v/std/fetch";
2import process from "node:process";
3
6 res: express.Response,
7) {
8 let response = await fetch("https://api.onepeloton.com/auth/login", {
9 method: "POST",
10 mode: "no-cors",
20 });
21 const session = await response.json();
22 let userResponse = await fetch(
23 `https://api.onepeloton.com/api/user/${session["user_id"]}`,
24 {
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export let replitDelete = (REPLIT_DB_URL, key) =>
4 fetch(`${REPLIT_DB_URL}/${key}`, { method: "DELETE" });
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3// GitHub starred repos
4export let githubStarred = fetchJSON(
5 "https://api.github.com/users/mcarter00/starred"
6);
1import { fetchBcycleCounts } from "https://esm.town/v/jonbo/fetchBcycleCounts";
2
3export const reactSSRExample = async (req: express.Request, res: express.Response) => {
26 return React.createElement("ul", null, bikeEls);
27 }
28 const data = fetchBcycleCounts;
29 const filtered = data.filter((row) => row.id == 7305 || row.id == 1871);
30 // Get current time in MST
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export let duckdbExample = (async () => {
4 async function createWorker(url: string) {
5 const workerScript = await fetch(url);
6 const workerURL = URL.createObjectURL(await workerScript.blob());
7 return new Worker(workerURL, { type: "module" });
1import process from "node:process";
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
3import { rimeRateLimitExceeded } from "https://esm.town/v/stevekrouse/rimeRateLimitExceeded";
4
12 if (rimeRateLimitExceeded(text))
13 return "Rime rate limit exceeded";
14 return fetchJSON(
15 "https://rjmopratfrdjgmfmaios.functions.supabase.co/rime-tts",
16 {