Skip to content

Commit 0a1564c

Browse files
committed
docs: update python sdk
1 parent 56b01ca commit 0a1564c

File tree

1 file changed

+7
-10
lines changed
  • apps/public/content/docs/(tracking)/sdks

1 file changed

+7
-10
lines changed

apps/public/content/docs/(tracking)/sdks/python.mdx

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,18 +81,15 @@ op.track("login_successful", {
8181

8282
### Identifying Users
8383

84-
To identify a user, use the `identify` method:
84+
To identify a user, use the `identify` method with the profile ID as the first argument and a dictionary of traits as the second:
8585

8686
```python
87-
op.identify({
88-
"profile_id": "123", # Required
89-
"first_name": "Joe",
90-
"last_name": "Doe",
91-
"email": "joe@doe.com",
92-
"properties": {
93-
"tier": "premium",
94-
"company": "Acme Inc"
95-
}
87+
op.identify("user123", {
88+
"firstName": "John",
89+
"lastName": "Doe",
90+
"email": "john@example.com",
91+
"tier": "premium",
92+
"company": "Acme Inc"
9693
})
9794
```
9895

0 commit comments

Comments
 (0)