| Conditions | 2 |
| Total Lines | 20 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 1 |
| CRAP Score | 4.3145 |
| Changes | 0 | ||
| 1 | #!/usr/bin/python |
||
| 24 | 1 | def get_my_inventory(self, app_id: int = CommonSteamGames.APP_ID_CSGO, page: int = None) -> APIResponse: |
|
| 25 | """GetAccountInventory v1 implementation |
||
| 26 | https://bitskins.com/api/#get_my_inventory |
||
| 27 | |||
| 28 | Returns the newest 5000 items, use pages to navigate through more |
||
| 29 | |||
| 30 | :type app_id: int |
||
| 31 | :type page: int |
||
| 32 | :return: |
||
| 33 | """ |
||
| 34 | api_url = "https://bitskins.com/api/v1/get_my_inventory/" |
||
| 35 | |||
| 36 | payload = { |
||
| 37 | 'app_id': str(app_id) |
||
| 38 | } |
||
| 39 | |||
| 40 | if page: |
||
| 41 | payload['page'] = int(page) |
||
| 42 | |||
| 43 | return self.api_request(api_url=api_url, params=payload) |
||
| 44 |