
import requests

class ApiClient:
    def __init__(self, base_url=None):
        self.base_url = base_url

    def send_request(self,method, url, headers=None, params=None, data=None, json=None):
        res = requests.request(
            method=method,
            url=self.base_url + url if self.base_url else url,
            headers=headers,
            params=params,
            data=data,
            json=json
        )
        # print(res.text)
        return res