deis/slackbox

Name: slackbox

Owner: Deis

Description: ? Spotify playlist collaboration through Slack.

Forked from: benchmarkstudios/slackbox

Created: 2017-02-10 17:15:16.0

Updated: 2017-02-10 17:15:18.0

Pushed: 2017-01-08 21:23:12.0

Homepage:

Size: 18

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

slackbox

Spotify playlist collaboration through Slack. Brought to you by the lovely people at Benchmark.

Deploy

Simply create a Slash Command, such as /jukebox, which accepts a track name (also the artist too for a less fuzzy search) to add to a pre-defined Spotify playlist:

/jukebox Bell Biv DeVoe ? Poison
Installation

First you'll want to create your Slack Slash Command, which you can do by going to your Slash Commands page.

During setup, have your slash command submit a POST to your app's /store endpoint, e.g. https://app-name.herokuapp.com/store.

Make a note of the token, as you'll need it later to help guard against cross-site request forgery.

Spotify

Head over to Spotify's Developer Site and create a new Application. Make sure you add whatever slackbox's callback URI as a valid callback URI. If you're running locally, this will be http://localhost:5000/callback or on Heroku https://app-name.herokuapp.com/callback

Make a note of the key, secret and callback URI too, as you'll need these later as well.

Also, don't forget to make a playlist. If you do this through Spotify's web interface then the playlist identifier will be the last segment of the URI - make a note of this too! If there's a better way of finding this out, we're all ears. If you do this through the app, right-click the playlist to get it's web URL and again, you need the last segment of the URI.

Environment variables

Once you've cloned slackbox or hit the “Deploy with Heroku” button you'll need to setup the following environment variables. These can either be stored in a .env or set up as config variables in Heroku.

Authentication

Visit your slackbox's home page to authenticate yourself with Spotify and you should be all set!


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.