Skip to content

Commit d84faf9

Browse files
committed
webhook support
1 parent db2d517 commit d84faf9

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

vulners/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22

3-
__version__ = "2.0.6"
3+
__version__ = "2.0.8"
44

55
import warnings
66
from .vulners import VulnersApi, Vulners

vulners/vulners.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,15 @@ def scanlist_report(self, limit=30, offset=0, filter=None, sort=''):
587587
]
588588
)
589589

590+
read_webhook = Endpoint(
591+
method="get",
592+
url="/api/v3/subscriptions/webhook",
593+
params=[
594+
("subscriptionid", String()),
595+
("newest_only", String(default="true"))
596+
]
597+
)
598+
590599

591600
_Unset = object()
592601

0 commit comments

Comments
 (0)