You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,12 +41,12 @@ track.on_error = on_error
41
41
42
42
43
43
# APIs
44
-
## Identify
44
+
## User
45
45
The `identify` lets you tie a user to their actions and record traits about them. It includes a unique **User ID** or **Phone Number and Country Code** any optional traits you know about them.
46
46
47
-
Example `identify` call:
47
+
Example `user` call:
48
48
```
49
-
track.identify(
49
+
track.user(
50
50
user_id="<user_id in your db>",
51
51
traits={
52
52
"name": "John Doe",
@@ -55,7 +55,7 @@ track.identify(
55
55
}
56
56
)
57
57
```
58
-
#### The `identify` call has the following fields:
58
+
#### The `user` call has the following fields:
59
59
|Field|Data type|Description|
60
60
|--|--|--|
61
61
|user_id|str or int|The ID for the user in your database.|
0 commit comments