Skip to content

Commit 629069a

Browse files
authored
fix typo
1 parent 96a9fa3 commit 629069a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Usage.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ print(key2)
335335
# Compare keys
336336
print(key1 == key2)
337337

338-
# Revoke the user's API keu
338+
# Revoke the user's API key
339339
api.users.revoke_key(user_id)
340340

341341
# Lock the user
@@ -350,7 +350,7 @@ print(user.hasPassword == True)
350350
print(user.status == 'Locked')
351351
```
352352

353-
## Analyzer Pperations
353+
## Analyzer Operations
354354

355355
The `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', {
487487
print(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

0 commit comments

Comments
 (0)