MCPcopy Create free account
hub / github.com/Rushifakami/csfloat_api / get_stall

Method get_stall

csfloat_client.py:318–335  ·  view source on GitHub ↗

:param user_id: The ID of the user whose stall information is to be retrieved :param limit: The maximum number of listings to return. Defaults to 40. :param raw_response: Returns the raw response from the API :return: Optional[Stall]: A Stall object containing the us

(
            self, user_id: int, *, limit: int = 40, raw_response: bool = False
    )

Source from the content-addressed store, hash-verified

316 return Listing(data=response)
317
318 async def get_stall(
319 self, user_id: int, *, limit: int = 40, raw_response: bool = False
320 ) -> Optional[Stall]:
321 """
322 :param user_id: The ID of the user whose stall information is to be retrieved
323 :param limit: The maximum number of listings to return. Defaults to 40.
324 :param raw_response: Returns the raw response from the API
325 :return: Optional[Stall]: A Stall object containing the user's listings if `raw_response` is False.
326 """
327 parameters = f'/users/{user_id}/stall?limit={limit}'
328 method = 'GET'
329
330 response = await self._request(method=method, parameters=parameters)
331
332 if raw_response:
333 return response
334
335 return Stall(data=response)
336
337 async def get_inventory(self):
338 parameters = f"/me/inventory"

Callers

nothing calls this directly

Calls 2

_requestMethod · 0.95
StallClass · 0.85

Tested by

no test coverage detected