def request(
self, endpoint: str, query: Mapping = {}, body: Mapping = {}
) -> Mapping:
method = "GET"
if body != {}:
method = "POST"
return requests.request(
method,
"https://pixel.w84.vkforms.ru/HappySanta/slaves/1.0.0" + endpoint,
params=query,
json=body,
headers={
"authorization": "Bearer " + self.bearer,
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0",
},
).json()