MCPcopy Create free account
hub / github.com/HiddenCodeDevs/BlumTelegramBot / post

Method post

bot/core/api.py:55–63  ·  view source on GitHub ↗
(self, url: str, data: dict = None)

Source from the content-addressed store, hash-verified

53 return response
54
55 async def post(self, url: str, data: dict = None):
56 option_headers = {"access-control-request-method": "POST", **self._session.headers}
57 response = await self._session.options(url=url, headers=option_headers)
58 self._log.trace(f"[{response.status}] OPTIONS POST: {url}")
59 response = await self._session.post(url=url, json=data)
60 if response.status == 401:
61 raise NeedRefreshTokenError()
62 self._log.trace(f"[{response.status}] POST: {url}")
63 return response
64
65 async def auth_with_web_data(self, web_data) -> dict:
66 resp = await self.post(url=f"{self.user_url}/api/v1/auth/provider/PROVIDER_TELEGRAM_MINI_APP", data=web_data)

Callers 14

auth_with_web_dataMethod · 0.95
refresh_tokensMethod · 0.95
claim_daily_rewardMethod · 0.95
start_gameMethod · 0.95
claim_gameMethod · 0.95
start_taskMethod · 0.95
validate_taskMethod · 0.95
claim_taskMethod · 0.95
start_farmingMethod · 0.95
claim_farmMethod · 0.95
claim_friends_balanceMethod · 0.95
leave_tribeMethod · 0.95

Calls 1

Tested by

no test coverage detected