File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -335,7 +335,7 @@ print(key2)
335335# Compare keys
336336print (key1 == key2)
337337
338- # Revoke the user's API keu
338+ # Revoke the user's API key
339339api.users.revoke_key(user_id)
340340
341341# Lock the user
@@ -350,7 +350,7 @@ print(user.hasPassword == True)
350350print (user.status == ' Locked' )
351351```
352352
353- ## Analyzer Pperations
353+ ## Analyzer Operations
354354
355355The ` AnalyzersController ` class provides a set of methods to handle analyzers.
356356
@@ -473,7 +473,7 @@ analyzer = api.analyzers.update(analyzer.id, {
473473})
474474
475475# Run an analyzer against a domain
476- job1 = api2 .analyzers.run_by_name(' Test_1_0' , {
476+ job1 = api .analyzers.run_by_name(' Test_1_0' , {
477477 ' data' : ' google.com' ,
478478 ' dataType' : ' domain' ,
479479 ' tlp' : 1 ,
@@ -487,7 +487,7 @@ job1 = api2.analyzers.run_by_name('Test_1_0', {
487487print (json.dumps(job1.json(), indent = 2 ))
488488
489489# Run an analyzer against a file
490- job2 = api2 .analyzers.run_by_name(' File_Info_2_0' , {
490+ job2 = api .analyzers.run_by_name(' File_Info_2_0' , {
491491 ' data' : ' /tmp/sample.txt' ,
492492 ' dataType' : ' file' ,
493493 ' tlp' : 1
You can’t perform that action at this time.
0 commit comments