Spotify lib in pure sh + curl; as small as possible -- successor to spotbash
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Mia T. Rain c01c9c80df
init
2 months ago
.gitignore init 2 months ago
LICENSE init 2 months ago
README init 2 months ago
spot init 2 months ago

README

---
psh-spot-micro
-- Spotify lib in pure sh + curl; as small as possible
-- Successor to spotbash
---
Setup
-- 1 go to https://developer.spotify.com/dashboard/
---- 1a create a new app with any name or use an existing one
-- 2 add http://localhost as a redirect uri
-- 3 open https://accounts.spotify.com/en/authorize?response_type=code&client_id=CLID&scope=user-read-private%20user-read-email%20user-library-read%20playlist-modify-private%20user-read-currently-playing%20user-modify-playback-state%20playlist-read-collaborative%20user-read-playback-state%20streaming%20playlist-read-private&redirect_uri=http://localhost&show_dialog=false
---- where CLID is client id from the app you made in step one; looks like 7fXXXX048XXXXf59bXXX08XaXXbf0XXc
-- 4 allow
-- 5 you will be redirected to http://localhost/?code=...
---- 5a copy code after `=`
-- 6 run ./spot auth CODE CLID CLSEC
>> where `code` is code from 5a
>> where `CLID` is client id from 1
>> where `CLSEC` is client secret from 1
-- Info
>> `response_type=code`: spotify should return a auth code -- used to gen rekey
>> `scope=...`: sets scope to ALL -- adjust for personal use
>> `show_dialog=false`: you will not be asked for if you have already agreed -- likely makes use of cookies
---
Plans
-- Pure.
---- Pure POSIX sh & curl
>> Depends on only dash/POSIX (2022) compatible shell & curl
>>>> Possible future wget version via seperate branch
-- Self-contained
---- No submods.
-- Microscopic
---- Aim for < 350 lines
-- Aim for webless.
---- Aiming to work without webapp usage
>> If unavoidable will produce new webapp from the ground up
-- Possible future addons with ksh99t+
---- With seperate branch
---