Gateway
8from urllib.parse import urlparse
9
10
11class Gateway: 12 # logger
13 def __init__(self, api_key, api_base_url, logger=False, engineio_logger=False, domain="csgoempire.com", custom_ws_url=False):
14 """
Client
8from .metadata import Metadata
9
10
11class Client(): 12 accepted_domains = [
13 "https://csgoempire.com",
14 "https://csgoempire.gg",
RequestError
20 super().__init__("Invalid token provided, please generate a token at https://csgoempire.com/trading/apikey")
21
22
23class RequestError(CustomError):24 pass
25
26
InvalidApiKey
14 super().__init__("No token provided, please generate a token at https://csgoempire.com/trading/apikey")
15
16
17class InvalidApiKey(CustomError):18 sys.tracebacklimit = 0
19 def __init__(self):
20 super().__init__("Invalid token provided, please generate a token at https://csgoempire.com/trading/apikey")
InvalidDomain
24 pass
25
26
27class InvalidDomain(CustomError):28 sys.tracebacklimit = 0
29 pass
30
Class docstring is missing.
If you want to ignore this, you can configure this in the .deepsource.toml
file. Please refer to docs for available options.