1
2
3
4
5
6
7
import { spotifyTracks } from "https://esm.town/v/stevekrouse/spotifyTracks";
import { spotifyDiscoverWeeklyPlaylist } from "https://esm.town/v/stevekrouse/spotifyDiscoverWeeklyPlaylist";
export let spotifyDiscoverWeeklyTracks = async (token) => {
let { id } = await spotifyDiscoverWeeklyPlaylist(token)
return spotifyTracks(token, id)
}
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