Created
March 17, 2012 09:54
-
-
Save jkeyes/2057216 to your computer and use it in GitHub Desktop.
python-intercom blurb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from intercom import Intercom | |
from intercom import User | |
... | |
Intercom.api_key = 'xxx' | |
Intercom.api_id = 'yyy' | |
... | |
user = User.find_by_email('[email protected]') | |
user.custom_data['age'] = 42 user.save() | |
... | |
user.created_at # datetime object | |
... | |
from intercom import Impression | |
impression = Impression.create( email='[email protected]', | |
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