Public
Script
October 23, 2023
1
2
3
4
5
6
7
8
9
import { spotifyDoNotShareState } from "https://esm.town/v/stevekrouse/spotifyDoNotShareState";
import { spotifyGetToken } from "https://esm.town/v/stevekrouse/spotifyGetToken";
import { discoverWeeklySearch } from "https://esm.town/v/stevekrouse/discoverWeeklySearch";
import { spotifyAPI } from "https://esm.town/v/stevekrouse/spotifyAPI";
export let discoverWeeklyTracks = spotifyAPI({
endpoint: `playlists/${discoverWeeklySearch.playlists.items.at(0).id}/tracks`,
token: (await spotifyGetToken(spotifyDoNotShareState)).access_token,
})
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