Public
Script
Readme

GET /v1/me/runs

Fetches information about runs of any val you author.

Requires a secret called valtownToken, set to your API Token. See more about authentication to understand how to generate a token.

1
2
3
4
5
6
7
8
9
10
11
12
import process from "node:process";
import { runs } from "https://esm.town/v/stevekrouse/runs?v=17";
export let getRuns = runs({
token: process.env.valtownToken,
error: false,
limit: 10,
offset: 0,
// last 30 minutes
since: new Date(Number(new Date()) - 1800000),
until: new Date(),
});
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