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
@@ -75,7 +78,7 @@ Once initialized, sdk will create a singleton instance which you can get:
75
78
from securenative.securenative import SecureNative
76
79
77
80
78
-
secureNative= SecureNative.get_instance()
81
+
securenative= SecureNative.get_instance()
79
82
```
80
83
81
84
## Tracking events
@@ -85,15 +88,22 @@ instance. Make sure you build event with the EventBuilder:
85
88
86
89
```python
87
90
from securenative.securenative import SecureNative
88
-
from securenative.event_options_builder import EventOptionsBuilder
91
+
from securenative.context.securenative_context import SecureNativeContext
92
+
from securenative.models.event_options import EventOptions
89
93
from securenative.enums.event_types import EventTypes
90
94
from securenative.models.user_traits import UserTraits
91
95
92
96
93
97
securenative = SecureNative.get_instance()
94
98
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