You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
456 B
19 lines
456 B
# Copyright (C) 2005-2024 Splunk Inc. All Rights Reserved.
|
|
|
|
import requests
|
|
|
|
from integrations.commons.logutil import get_logger
|
|
|
|
logger = get_logger(name=__name__)
|
|
|
|
|
|
class RestMethods(object):
|
|
@classmethod
|
|
def get(cls):
|
|
pass
|
|
|
|
@classmethod
|
|
def post(cls, url, data_json, headers, verify=True):
|
|
response = requests.post(url, data=data_json, headers=headers, verify=verify)
|
|
return response.status_code, response.json()
|