Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Announcements API

Ashwin Ramaswami edited this page Jan 26, 2019 · 3 revisions

Announcements API Config

Slack config

  • Create a slack app

  • Go to "Oauth and permissions" page image

  • Scroll down to "scopes" and make sure channels:history is included image

  • Scroll up to "Oauth tokens & Redirect URLs" and click "install app" to install the app on the Treehacks workspace; then get the oauth access token. image

  • Create a channel for live site announcements. Go to the channel in the slack website, then copy the channel ID from the URL: image

  • Set the following environment variables in Heroku and/or your .env file:

SLACK_OAUTH_ACCESS_TOKEN= ...
SLACK_ANNOUNCEMENTS_CHANNEL_ID= ...
  • Then, go to the /announcements endpoint to view the announcements!

image

Clone this wiki locally