Spotify lib in pure sh + curl; as small as possible -- successor to spotbash
Go to file
Mia T. Rain c01c9c80df
init
2022-10-13 04:42:06 -04:00
.gitignore init 2022-10-13 04:42:06 -04:00
LICENSE init 2022-10-13 04:42:06 -04:00
README init 2022-10-13 04:42:06 -04:00
spot init 2022-10-13 04:42:06 -04:00

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
---