1
2
3
4
5
6
7
8
9
import { cleanWorkoutData } from "https://esm.town/v/andreterron/cleanWorkoutData";
import process from "node:process";
import { pelotonUserId } from "https://esm.town/v/andreterron/pelotonUserId";
import { fetchPelotonWorkouts } from "https://esm.town/v/andreterron/fetchPelotonWorkouts";
console.log(await fetchPelotonWorkouts(
pelotonUserId,
process.env.pelotonSessionId
));
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!
March 8, 2024