Public
Script
1
2
3
4
5
6
7
8
9
import ValTown from "npm:@valtown/sdk";
const vt = new ValTown({ bearerToken: Deno.env.get("valtown") });
console.log(await vt.me.profile.retrieve());
console.log(await vt.blobs.list());
console.log(await vt.vals.runAnonymous({ code: "export const x = 1+1" }));
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!
August 27, 2024