def __delete_call(url, headers, payload, insecure=False):
     url = utils.add_params_to_url(url, payload)
     if not _verify_check(url, insecure):
         warnings.simplefilter("ignore", InsecureRequestWarning)
     result = requests.delete(url,
                              headers=headers,
                              verify=_verify_check(url, insecure))
     warnings.resetwarnings()
     return result
Example #2
0
 def __delete_call(url, headers, payload):
     url = utils.add_params_to_url(url, payload)
     return requests.delete(url, headers=headers)
Example #3
0
    def __get_call(url, headers, payload):
        url = utils.add_params_to_url(url, payload)

        return requests.get(url, headers=headers)