Git Product home page Git Product logo

intercom-ruby-app's People

Contributors

apassant avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

intercom-ruby-app's Issues

Implement proxy to the Intercom API

Goal

As a developer, I want to build JavaScript apps using Intercom data. A local proxy would allow me to do so, so that calling http://localhost:3000/api/what/ever?foo=bar will have the same effect as calling http://api.intercom.io/what/ever?foo=bar

A/C

  • The proxy must translate any URL to the Intercom API, so that it doesn't require any change when we update the API.
  • Also, it must use the oAuth credentials stored in session data, so that critical user information will never be exposed to users / front-end apps.

Use-case scenario:

  • A user logs-in to a intercom-ruby-app instance
  • They can visit /api/users which will translate to https://api.intercom.io/users and list all users (same response data)
  • All those /api URLs can subsequently be used in Javascript, w/o cross-domain or authentication issues
  • When the user logs-out from the app, /api queries will be denied

TODO

  • Add support for webhooks registration
  • Add a webhook controller generator with security checks
  • Integrate static assets

specify unique key for App model in generators

Some integrations require a different identifier than the app_id.
For example an intercom-github integration to post issues from intercom would require every admin who want to use the integration to authenticate.
For an integration with a CMS (like in the open source intercom-wix integration) several website could use the same app_id.

Intercom For Developers Events

Use Intercom PAT to :

  • create/update users on oauth callback
  • tag users as "Integrated with [APP NAME]
  • Add event to users timeline
  • Create companies ? Based on Intercom's app name and id_code ?

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.