https://github.com/drench/shpotify
Command line access to the Spotify API
https://github.com/drench/shpotify
json shell spotify-api
Last synced: 12 months ago
JSON representation
Command line access to the Spotify API
- Host: GitHub
- URL: https://github.com/drench/shpotify
- Owner: drench
- Created: 2018-05-20T14:04:17.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2023-03-12T19:21:48.000Z (over 3 years ago)
- Last Synced: 2024-08-05T06:06:35.643Z (almost 2 years ago)
- Topics: json, shell, spotify-api
- Language: Shell
- Size: 23.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## shpotify
This is a command line interface to the Spotify API, written in `zsh`.
It also requires `jq` and `curl` which you may need to install yourself.
To get started, get set up with the Spotify API.
For details: https://developer.spotify.com/web-api/tutorial/
* Store your Spotify Client ID in the file `~/config/shpotify/.env.d/SPOTIFY_CLIENT_ID`.
* Store your Spotify Client Secret in the file `~/config/shpotify/.env.d/SPOTIFY_CLIENT_SECRET`.
* Store your Spotify Refresh Token in `~/config/shpotify/.env.d/SPOTIFY_REFRESH_TOKEN`.
* Store your Spotify Access Token in `~/config/shpotify/.env.d/SPOTIFY_ACCESS_TOKEN`.
Your access token will expire in about an hour but `shpotify` will automatically
refresh it if it's nearing or past expiration.
### Running it
Clone this repo and `cd` into it.
Load the `zsh` completion:
```shell
eval "$(./shpotify --completion-code)"
```
Type `./shpotify` and hit your "tab" key to see what's available.
This is a very incomplete implementation of the API.
If `zsh` tab completion exists for it, consider it supported.