Removed api code for webhook

Taking off API configuration on the webhook oriented responder
This commit is contained in:
azgaviperr
2021-05-07 08:22:25 +02:00
parent e83017121a
commit 2ed910a2ac
3 changed files with 2 additions and 9 deletions
@@ -16,7 +16,8 @@ class Shuffle(Responder):
Responder.run(self)
parsed_url = "%s/api/v1/workflows/%s/execute" % (self.url, self.workflow_id)
headers = {
"Authorization": "Bearer %s" % self.api_key
"Authorization": "Bearer %s" % self.api_key,
"User-Agent": "Cortex-Analyzer"
}
requests.post(parsed_url, headers=headers,verify=self.verify)
@@ -17,13 +17,6 @@
"required": true
},
{
"name": "api_key",
"description": "The API key to your Shuffle user",
"type": "string",
"multi": false,
"required": true
},
{
"name": "verifyssl",
"description": "Verify SSL certificate",
"type": "boolean",
@@ -16,7 +16,6 @@ class Shuffle(Responder):
def run(self):
Responder.run(self)
headers = {
"Authorization": "Bearer %s" % self.api_key,
"Content-Type": "application/json",
"Accept": "application/json",
"User-Agent": "Cortex-Analyzer"