Skip to content

Commit 1b50fd9

Browse files
authored
Update README.md
1 parent 0a5c734 commit 1b50fd9

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import securenative
1313

1414
# Many lines of code ...
1515

16-
if __name__=='main':
16+
if __name__=='__main__':
1717
# Your bootstrap code
1818
securenative.init('API_KEY') # Should be called before any other call to secure native
1919
```
@@ -53,14 +53,13 @@ Once the SDK has been initialized, you can protect sensitive operation by callin
5353

5454
```python
5555
import securenative
56-
from securenative.event_types import login
5756
from securenative.event_options import Event, User
5857

5958
def my_change_password_function():
6059
# Many lines of code...
6160

6261
event = Event( # Build the event from the request's context
63-
event_type=login,
62+
event_type='',
6463
ip='35.199.23.1',
6564
remote_ip='35.199.23.2',
6665
user_agent='Mozilla/5.0 (Linux; U; Android 4.4.2; zh-cn; GT-I9500 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko)Version/4.0 MQQBrowser/5.0 QQ-URL-Manager Mobile Safari/537.36',

0 commit comments

Comments
 (0)