Quick hack to automatically download segment data from Intercom (https://www.intercom.io/) into a Dropbox app folder.
- Create a file main.cfg
- Create a Dropbox app from dropbox.com/developers App Console.
- Generate an implicit token for yourself
- Get your app_id and app_key from Intercom
- Get the id for the segments your wish to track (easiest way is to go to the segment and look at the url)
- Input it into the config template below
- Run
python main.py
on a cron (or whenever you feel like)
[Dropbox]
access_token: <Dropbox Implicit Access Token>
[Intercom]
app_id: <Your Intercom App Id>
app_key: <Your Intercom App Key>
[IntercomSegments]
<Name of the Segment Folder>: <Segment Id>
Let me know if you find this useful or have questions. I'm just posting it publicly just for the hell of it, obviously semi-perfectly documenting it. I'm @ehfeng.