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
||2 months ago|
|.gitignore||2 months ago|
|LICENSE||2 months ago|
|README||2 months ago|
|spot||2 months ago|
-- Spotify lib in pure sh + curl; as small as possible
-- Successor to spotbash
-- 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
>> `response_type=code`: spotify should return a auth code -- used to gen rekey
>> `scope=...`: sets scope to ALL -- adjust for personal use
---- Pure POSIX sh & curl
>> Depends on only dash/POSIX (2022) compatible shell & curl
>>>> Possible future wget version via seperate branch
---- No submods.
---- 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