MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / request_plain

Method request_plain

tianyi.py:221–224  ·  view source on GitHub ↗
(self, endpoint: str, params: dict = None)

Source from the content-addressed store, hash-verified

219
220
221 def request_plain(self, endpoint: str, params: dict = None) -> dict:
222 url = f"{self.BASE_URL}{endpoint}"
223 response = self.session.post(url, params=params, timeout=30)
224 return response.json()
225
226 def request_encrypted(self, endpoint: str, params: dict) -> dict:
227 self.session.headers["imencrypt"] = "1"

Callers 4

get_user_infoMethod · 0.95
check_user_stateMethod · 0.95
query_template_listMethod · 0.95

Calls 1

postMethod · 0.45

Tested by

no test coverage detected