MCPcopy Create free account
hub / github.com/Loping151/RoverSign / get_form_list

Method get_form_list

RoverSign/utils/api/requests.py:303–319  ·  view source on GitHub ↗
(self, token: str)

Source from the content-addressed store, hash-verified

301 except Exception as e:
302 logger.exception(f"get_task token {token}", e)
303
304 @timed_async_cache(
305 3600,
306 lambda x: x and isinstance(x, dict) and x.get("code") == 200,
307 )
308 async def get_form_list(self, token: str):
309 try:
310 header = await get_base_header()
311 used_headers = await self.get_used_headers(cookie=token, uid="")
312 header.update(used_headers)
313 header.update({"version": "2.25"})
314 data = {
315 "pageIndex": "1",
316 "pageSize": "20",
317 "timeType": "0",
318 "searchType": "1",
319 "forumId": "9",
320 "gameId": "3",
321 }
322 return await self._waves_request(FORUM_LIST_URL, "POST", header, data=data)

Callers 1

do_single_taskFunction · 0.80

Calls 3

get_used_headersMethod · 0.95
_waves_requestMethod · 0.95
get_base_headerFunction · 0.85

Tested by

no test coverage detected