Giter Club home page Giter Club logo

spot's Introduction

Overview

Spot is a CLI tool used to talk to the Spotify API.

Features

Spot currently has the following functionality built in

  • Authenticate with Spotify to use their public API
  • View currently playing track
  • Pause currently playing track
  • Play a paused track
  • Restart the current track
  • Go to the next track
  • Go to the previous track
  • Check to see if you are following the artist
  • Follow the currently playing artist
  • Unfollow the currently playing artist
  • View the existing OAuth token

Setup

You can follow the instructions here to create a client ID.

Once you create your clientID, you will need to keep the clientID and the clientSecret to put in the configuration file.

Configuration

Spot uses a yaml configuration file to store the oauth token, the Spotify clientID and client secret. This file is typically stored at ~/.spot/config.yaml. Here is an example file

spotify_access_token: xyz
spotify_access_token_expiration: 2020-05-22T12:00:00Z
spotify_client: xyz
spotify_refresh_token: xyz
spotify_secret: xyz
spotify_token_type: Bearer

The only required values to get started are spotify_client and spotify_secret. You will get those when you create your Client ID on Spotify's developer page.

First Run

The first time you run, you will need to run spot auth to get an access token and refresh token. They will be saved in your configuration file and stored for later use.

spot's People

Contributors

bradleyshawkins avatar brad-hawkins avatar

Stargazers

Mike Campbell avatar Tyson Phalp avatar Dave Hulihan avatar Jeff Martin avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.