From d84faf9bdaf40c67b441c5b7cd1d5bc28c5b031a Mon Sep 17 00:00:00 2001 From: aachurin Date: Wed, 8 Feb 2023 13:16:09 +0300 Subject: [PATCH] webhook support --- vulners/__init__.py | 2 +- vulners/vulners.py | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/vulners/__init__.py b/vulners/__init__.py index 3195241..04e8b9a 100644 --- a/vulners/__init__.py +++ b/vulners/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -__version__ = "2.0.6" +__version__ = "2.0.8" import warnings from .vulners import VulnersApi, Vulners diff --git a/vulners/vulners.py b/vulners/vulners.py index a7d07c2..43bc6c9 100644 --- a/vulners/vulners.py +++ b/vulners/vulners.py @@ -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()