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": "My User Agent 1.0",
},
).json()