Git Product home page Git Product logo

intercom-webhooks-test's Introduction

A simple rails application that serves as a webhook endpoint

Get it Running

Production

Deploy to Heroku using the following steps:

Create

  • Clone this repo
  • cd intercom-webhooks-test
  • Install the Heroku Toolbelt
  • heroku login
  • heroku create
  • ruby -e "require 'securerandom'; puts SecureRandom.hex(128);"
    • Use this string in the next command.
  • heroku config:set --app YOUR-APP-NAME SECRET_TOKEN=<string from previous command output>

Deploy

  • git push heroku master
  • heroku run rake db:migrate
  • heroku domains
    • Remember this URL for later.

For more help check out how to get started with Rails 4 on Heroku.

Use

  • Create a new webhook in Intercom by heading to the Webhooks section of your Developer Home Dashboard Create New Webhook
  • In the Webhook URL field enter the output of the heroku domains command from above.
    • Output of the heroku domains command: heroku domains
    • Value of the Webhook URL field: Webhook URL
  • In the Hub Secret field, enter the value of secret from this part of the code.
    • If you were dealing with a production app you'd want to make this a little more secure.
    • This is to ensure that the webhook is coming from a verified source.
    • The secret can be updated to whatever you want once it gets updated in the code in the above place.
    • You can read about this in the Intercom developer docs here
    • Value in Intercom. Secret
  • Choose the topics that you want to subscribe to: Topics
  • Create the webhook:
  • If everything is set up correctly, visit the heroku domains URL and you should see a ping from Intercom like this: Ping

intercom-webhooks-test's People

Contributors

damonfstr avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.