Conditions | 1 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | #!/usr/bin/python |
||
22 | def get_my_inventory(self, app_id: int = CommonSteamGames.APP_ID_CSGO, app_context: int = 2): |
||
23 | """Retrieve the steam inventory |
||
24 | |||
25 | :type app_id: int |
||
26 | :type app_context: int |
||
27 | :return: |
||
28 | """ |
||
29 | url = '{base:s}/my/inventory/json/{app_id:d}/{app_context:d}'.format(base=SteamUrls.COMMUNITY, |
||
30 | app_id=app_id, |
||
31 | app_context=app_context) |
||
32 | return self.api_request(url) |
||
33 |