Skip to content

Commit

Permalink
webhook support
Browse files Browse the repository at this point in the history
  • Loading branch information
aachurin committed Feb 8, 2023
1 parent db2d517 commit d84faf9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion vulners/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-

__version__ = "2.0.6"
__version__ = "2.0.8"

import warnings
from .vulners import VulnersApi, Vulners
Expand Down
9 changes: 9 additions & 0 deletions vulners/vulners.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,15 @@ def scanlist_report(self, limit=30, offset=0, filter=None, sort=''):
]
)

read_webhook = Endpoint(
method="get",
url="/api/v3/subscriptions/webhook",
params=[
("subscriptionid", String()),
("newest_only", String(default="true"))
]
)


_Unset = object()

Expand Down

0 comments on commit d84faf9

Please sign in to comment.