- Authorization Code Flow: https://developer.spotify.com/documentation/web-api
- Home (/): Display retrieved data or when invalid redirects to
Login - Login (/login): Request User Authorization by redirecting to Spotify Login which will in turn redirect to
Callback - Callback (/callback): Don't access manually, Spotify will redirect here and if successful redirects to
Access - Access (/access): Request Access Token and save data temporarily then redirects to
Home - Refresh (/refresh): Request a refreshed Access Token and save data temporarily then redirects to
Home
deno task start-denonpm i
npm run start-nodeGet playlists of current user, filter by public, collaborative and user id and only show name, owner display name, public and collaborative fields
TOKEN="" # paste your token between the quotes
LIMIT="50"
OFFSET="0"
curl -Ls -H "Cache-Control: no-cache" -H "Authorization: Bearer ${TOKEN}" "https://api.spotify.com/v1/me/playlists?limit=${LIMIT}&offset=${OFFSET}" | jq '.items[] | select((.public or .collaborative) and (.owner.id | ascii_downcase) == "masterflitzer") | { name, owner: .owner.display_name, public, collaborative }' | less