Skip to content

Instantly share code, notes, and snippets.

@jkeyes
Created March 17, 2012 09:54
Show Gist options
  • Save jkeyes/2057216 to your computer and use it in GitHub Desktop.
Save jkeyes/2057216 to your computer and use it in GitHub Desktop.
python-intercom blurb
from intercom import Intercom
from intercom import User
...
Intercom.api_key = 'xxx'
Intercom.api_id = 'yyy'
...
user = User.find_by_email('bob@example.com')
user.custom_data['age'] = 42 user.save()
...
user.created_at # datetime object
...
from intercom import Impression
impression = Impression.create( email='box@example.com',
user_ip='72.37.242.27', user_agent='Boozilla/10.1')
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment