Get Yelp search results in Slack
- A Heroku account
- A Yelp account
- An outgoing webhook token for your Slack team
- Clone this repository locally
- Create a new Heroku app and follow the instructions to initialize the
yelp-slack
repository - Use the Yelp API page to generate API credentials
- Navigate to the settings page of the Heroku app and add the following config variables:
OUTGOING_WEBHOOK_TOKEN
The token for your outgoing webhook integration in Slack (more on this in a bit)BOT_USERNAME
The name the bot will use when posting to SlackBOT_ICON
The emoji icon for the botYELP_CONSUMER_KEY
The consumer key for your Yelp API credentialsYELP_CONSUMER_SECRET
The consumer secret for your Yelp API credentialsYELP_TOKEN
The token for your Yelp API credentialsYELP_TOKEN_SECRET
The token secret for your Yelp API credentialsRADIUS
The radius for the search in meteres. Maximum radius is 40000 meters (25 miles)LOCATION
The center of the radius for your searches. Can be a zip code, neighborhood, adress, or city
- Navigate to the integrations page for your Slack team. Create an outgoing webhook, choose a trigger word (ex: ".lunch"), use the URL for your heroku app, and copy the webhook token to your
OUTGOING_WEBHOOK_TOKEN
config variable. - Push the repository to the Heroku app
- Try a search (ex: ".lunch pizza"). You should get a recommendation back.
@gesteves Who's code I am constantly referencing.