Skip to content

Commit cc507d5

Browse files
committed
Merge pull request #2 from ronyperez/patch-2
Update intercom.py
2 parents e5531f4 + 5a73923 commit cc507d5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

intercom/intercom.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ class Intercom(object):
8989

9090
app_id = None
9191
api_key = None
92-
api_version = 1
93-
api_endpoint = 'https://api.intercom.io/v' + str(api_version) + '/'
92+
api_endpoint = 'https://api.intercom.io/'
9493
timeout = DEFAULT_TIMEOUT
9594

9695
@classmethod
@@ -229,7 +228,7 @@ def update_user(cls, **kwargs):
229228
u'Guido'
230229
231230
"""
232-
return Intercom._create_or_update_user('PUT', **kwargs)
231+
return Intercom._create_or_update_user('POST', **kwargs)
233232

234233
@classmethod
235234
def delete_user(cls, user_id=None, email=None):

0 commit comments

Comments
 (0)