Skip to content

Set your currently playing song on Spotify as your Slack status

License

Notifications You must be signed in to change notification settings

khendrikse/spotify-to-slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Currently Listening on Spotify to Slack

Screenshot

This web application uses the Spotify and Slack API to check what you're listening to on Spotify and update your Slack status to the song currently playing

Getting Started

Clone the repository into your projects folder or:

  1. Download the ZIP file
  2. Unzip the ZIP file
  3. Make sure you install all neccesary prerequisites (see below)

Prerequisites

Make sure you have installed:

And run:

  $ yarn install

To install the dependencies:

Getting started

Spotify

This app uses a Client ID and Secret Key. These are used as environment variables. To get these and to be able to use the Web API, the first thing you will need is a Spotify user account (Premium or Free). To get one, simply sign up at www.spotify.com.

When you have a user account, go to the My Applications page at the Spotify Developer website and, if necessary, log in. Accept the latest Developer Terms of Use to complete the set-up of your account.

Follow this Spotify tutorial to get your Client ID and Secret Key.

Add these to the .env file.

Slack

This app also uses an OAuth Access Token for Slack. To get this, login at https://api.slack.com/apps and create an app. Then add the users.profile:write permission to your app and install it to your workspace.

Grab the OAuth Access Token and add it to your .env file.

How to run the app

Inside your terminal, change directories into the repository. There run:

  $ yarn start

The user needs to give access to Spotify and afterwards the terminal can run in the background.

Built With

  • Spotify API - The first API used.
  • Slack API - The second API used.
  • Express - Web framework for Node.js used.
  • Axios - HTTP client used.
  • dotenv - Library used for .env file integration.
  • opn - Library used to open browser window for Authentication.
  • JavaScript - Language used.
  • Node.js - The asynchronous event driven JavaScript runtime used.

About

Set your currently playing song on Spotify as your Slack status

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •