Skip to content

Instantly share code, notes, and snippets.

@dcolucci
Created January 12, 2017 01:26
Show Gist options
  • Select an option

  • Save dcolucci/66cd27bae340e0204b5a23064db16d87 to your computer and use it in GitHub Desktop.

Select an option

Save dcolucci/66cd27bae340e0204b5a23064db16d87 to your computer and use it in GitHub Desktop.

What?

We want to be able to stream all media posts to the song-of-the-day slack channel via a web browser

How?

  1. Outbound event when user posts to channel - see https://api.slack.com/slack-apps
  2. Users use a slash-command to trigger external event
  3. Utilize Slack's events API
  4. Web service receives these events
  5. Web service publishes to client via web socket
  6. Client-side code interprets payload and makes API call to appropriate service (youtube, spotify, etc) to generate a page embed
  7. Page embeds are in a "queue" and playback is triggered in order of receipt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment