Dead simply spotify cli controller
I just wanted to controll playback from cli
- Please go to here to create Client ID and Client Secret
- Please set redirect uri to http://127.0.0.1:14565/oauth/callback
- Please set these values like below.
export SPOTIFY_ID=your_client_id
export SPOTIFY_KEY=your_client_key
- Please run the commands below
go get -u github.com/justym/spocon
cd $GOPATH/src/github.com/justym/spocon
go build
If you are in a trouble, please see caution part in this README
spocon [sub cmds]
- start
- start command can play/resume your spotify playback
- 🚧 Mainly, please use this to resume. Now: play function is something wrong 🚧
- pause
- pause command can pasue your spotify playback
- next
- next command can listen next song
- prev
- prev command can listen previous song
- status
- status command can get your currently playback song name
- help
- help command can see short help message
- github.com/spf13/cobra
- github.com/nmrshll/oauth2-noserver
- This cli-app uses Spotify Web API. So, please check their web page carefully.
- This app uses that Web API through Authorization code flow (OAuth2.0).
- This cli-app uses this package github.com/nmrshll/oauth2-noserver to do authentication rapidly. So please see this package carefully too.
- Code review
- Issue
- Pull Request