77</p >
88<p align =" center " >
99 <a href =" https://github.com/securenative/securenative-python " >
10- <img alt="Github Actions" src="https://github.com/securenative/securenative-java /workflows/CI/badge.svg">
10+ <img alt="Github Actions" src="https://github.com/securenative/securenative-python /workflows/CI/badge.svg">
1111 </a >
1212 <a href =" https://codecov.io/gh/securenative/securenative-python " >
1313 <img src="https://codecov.io/gh/securenative/securenative-python/branch/master/graph/badge.svg" />
@@ -46,7 +46,7 @@ SecureNative can automatically load your config from *securenative.ini* file or
4646from securenative.securenative import SecureNative
4747
4848
49- secureative = SecureNative.init()
49+ securenative = SecureNative.init()
5050```
5151### Option 2: Initialize via API Key
5252
@@ -99,8 +99,8 @@ context = SecureNative.context_builder().\
9999 build()
100100
101101event_options = EventOptionsBuilder(EventTypes.LOG_IN ).\
102- with_user_id(" USER_ID " ).\
103- with_user_traits(UserTraits(" USER_NAME " , " USER_EMAIL " )).\
102+ with_user_id(" 1234 " ).\
103+ with_user_traits(UserTraits(
" Your Name " ,
" [email protected] " )).\
104104 with_context(context).\
105105 with_properties({" prop1" : " CUSTOM_PARAM_VALUE" , " prop2" : True , " prop3" : 3 }).\
106106 build()
@@ -122,8 +122,8 @@ def track(request):
122122 context = SecureNative.context_builder().from_http_request(request).build()
123123
124124 event_options = EventOptionsBuilder(EventTypes.LOG_IN ).\
125- with_user_id(" USER_ID " ).\
126- with_user_traits(UserTraits(" USER_NAME " , " USER_EMAIL " )).\
125+ with_user_id(" 1234 " ).\
126+ with_user_traits(UserTraits(
" Your Name " ,
" [email protected] " )).\
127127 with_context(context).\
128128 with_properties({" prop1" : " CUSTOM_PARAM_VALUE" , " prop2" : True , " prop3" : 3 }).\
129129 build()
@@ -147,8 +147,8 @@ def track(request):
147147 context = SecureNative.context_builder().from_http_request(request).build()
148148
149149 event_options = EventOptionsBuilder(EventTypes.LOG_IN ).\
150- with_user_id(" USER_ID " ).\
151- with_user_traits(UserTraits(" USER_NAME " , " USER_EMAIL " )).\
150+ with_user_id(" 1234 " ).\
151+ with_user_traits(UserTraits(
" Your Name " ,
" [email protected] " )).\
152152 with_context(context).\
153153 with_properties({" prop1" : " CUSTOM_PARAM_VALUE" , " prop2" : True , " prop3" : 3 }).\
154154 build()
0 commit comments