Public
Script
1
2
3
4
5
6
7
8
9
10
11
12
13
import { fetch } from "https://esm.town/v/std/fetch";
// email yourself as easily as logging to the console
export async function foo() {
const username = "whatrocks";
const today = new Date().toDateString();
console.log("today: ", today);
const url = `https://searchcaster.xyz/api/search?text=%E2%8C%86&username=${username}`;
let old_fling = "";
const response = await fetch(url);
const jsonData = await response.json();
console.log(jsonData);
}
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
October 23, 2023