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
+27-10Lines changed: 27 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@ Once initialized, sdk will create a singleton instance which you can get:
75
75
from securenative.securenative import SecureNative
76
76
77
77
78
-
secureNative= SecureNative.get_instance()
78
+
securenative= SecureNative.get_instance()
79
79
```
80
80
81
81
## Tracking events
@@ -85,15 +85,22 @@ instance. Make sure you build event with the EventBuilder:
85
85
86
86
```python
87
87
from securenative.securenative import SecureNative
88
-
from securenative.event_options_builder import EventOptionsBuilder
88
+
from securenative.context.securenative_context import SecureNativeContext
89
+
from securenative.models.event_options import EventOptions
89
90
from securenative.enums.event_types import EventTypes
90
91
from securenative.models.user_traits import UserTraits
91
92
92
93
93
94
securenative = SecureNative.get_instance()
94
95
95
-
context = SecureNative.context_builder().with_ip("127.0.0.1").with_client_token("SECURED_CLIENT_TOKEN").with_headers({"user-agent": "Mozilla/5.0 (iPad; U; CPU OS 3_2_1 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Mobile/7B405"}).build()
0 commit comments