Skip to content

Commit 3b98eee

Browse files
Changed API Path constant name
1 parent 3c2ddf1 commit 3b98eee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

track/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def user(self, user_id=None, country_code='+91', phone_number=None, traits={}):
6060
'phoneNumber': phone_number,
6161
'traits': traits
6262
}
63-
return self.__queue_request(path=ApiPaths.Identify.value, body=body)
63+
return self.__queue_request(path=ApiPaths.User.value, body=body)
6464

6565
def event(self, user_id=None, event=None, traits={}):
6666
"""To record user events"""

track/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44

55

66
class ApiPaths(enum.Enum):
7-
Identify = '/v1/public/track/users/'
7+
User = '/v1/public/track/users/'
88
Event = '/v1/public/track/events/'

0 commit comments

Comments
 (0)