requests

This module provides a wrapper for making API requests

source

make_api_request

 make_api_request (url:str, http_method:str='GET', headers:dict={},
                   data:dict={}, auth:tuple=(), cookies:dict={},
                   params:dict={})

Makes an API request to the given url with the given parameters.


source

get_failed_response

 get_failed_response (error_message='Some kind of API error ccured while
                      interacting with the given URL')