docs: update python sdk
This commit is contained in:
@@ -81,18 +81,15 @@ op.track("login_successful", {
|
|||||||
|
|
||||||
### Identifying Users
|
### Identifying Users
|
||||||
|
|
||||||
To identify a user, use the `identify` method:
|
To identify a user, use the `identify` method with the profile ID as the first argument and a dictionary of traits as the second:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
op.identify({
|
op.identify("user123", {
|
||||||
"profile_id": "123", # Required
|
"firstName": "John",
|
||||||
"first_name": "Joe",
|
"lastName": "Doe",
|
||||||
"last_name": "Doe",
|
"email": "john@example.com",
|
||||||
"email": "joe@doe.com",
|
"tier": "premium",
|
||||||
"properties": {
|
"company": "Acme Inc"
|
||||||
"tier": "premium",
|
|
||||||
"company": "Acme Inc"
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user