Skip to content

Commit 990957f

Browse files
change identify() method to user()
1 parent 32b13bd commit 990957f

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

track/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
max_queue_size = 10000
1515

1616

17-
def identify(user_id=None, country_code='+91', phone_number=None, traits={}):
17+
def user(user_id=None, country_code='+91', phone_number=None, traits={}):
1818
"""Send an identify call for customer"""
19-
return _proxy('identify', user_id=user_id, country_code=country_code,
19+
return _proxy('user', user_id=user_id, country_code=country_code,
2020
phone_number=phone_number, traits=traits)
2121

2222

track/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(self, write_key=None, host=None, debug=False,
4545
)
4646
self.consumer.start()
4747

48-
def identify(self, user_id=None, country_code='+91', phone_number=None, traits={}):
48+
def user(self, user_id=None, country_code='+91', phone_number=None, traits={}):
4949
"""Tie a user to their actions and record traits about them."""
5050
if not user_id and not phone_number:
5151
raise AssertionError("Either user_id or phone_number is required")

track/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = '1.0.2'
1+
VERSION = '1.0.3'

0 commit comments

Comments
 (0)