Ruby app which synchronises your users with Intercom asynchronously. It uses tags in intercom to specify user type and community info.
To start, please follow instructions below to run the app.
- Ruby 2.5.1
bundle
installs rubygems dependenciesbrew install redis
installs redis if applicablebrew services start redis
starts redisexport INTERCOM_ACCESS_TOKEN="#{INTERCOM_ACCESS_TOKEN}"
places your intercom access token in environment variableforeman start
runs the app!bundle exec rspec
runs the tests
Try /create_user
endpoint to create and update your users in intercom.
curl -X POST localhost:9292/create_user\ -d '{"name":"Faker Fake","email":"faker@fake.com","user_id":"99999999","helper": {"communities": [ { "name": "South Brisbane"}, { "name": "North Brisbane"} ]},"memberships":[{"name": "Eastern Suburbs"}, {"name": "Northern Suburbs"}]}'
As a result of user creation above, new user will be created in intercom with tags including Helper in South Brisbane
, Helper in North Brisbane
, Member in Eastern Suburbs
, and Member in Northern Suburbs
- Please provide user_id all the time.
- Set helper to
null
to remove helper tags from the user in intercom. - Set memberships to
[]
to remove member tags from the user in intercom.