Public
Script
Readme

GET /v1/me

Fetches information about yourself.

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
import process from "node:process";
import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
export let getMe = fetchJSON(`https://api.val.town/v1/me`, {
headers: {
Authorization: `Bearer ${process.env.valtownToken}`,
},
});
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