Readme

GET /v1/me/comments

Fetches information about any comments on vals.

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
import { comments } from "https://esm.town/v/neverstew/comments";
export let getComments = comments({
token: $me.secrets.valtownToken,
relationship: "any",
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