docs: update python sdk

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-12-02 23:37:44 +01:00
parent 56b01ca6d8
commit 0a1564c798

View File

@@ -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"
}
}) })
``` ```