1
2
3
4
5
6
7
8
9
10
11
import { querystring } from "https://esm.town/v/stevekrouse/querystring";
import { spotifyRedirectURI } from "https://esm.town/v/stevekrouse/spotifyRedirectURI";
import { spotifyScopes } from "https://esm.town/v/stevekrouse/spotifyScopes";
import { spotifyClientId } from "https://esm.town/v/stevekrouse/spotifyClientId";
export let spotifyAuthorizeURL = async (params = {
response_type: 'code',
client_id: spotifyClientId,
scope: spotifyScopes.join(","),
redirect_uri: spotifyRedirectURI,
}) => 'https://accounts.spotify.com/authorize?' + await querystring(params)
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