1212# External
1313from uplink .auth import BearerToken
1414
15- # Current package
15+ # Current package
1616from .apis import tags_to_api_dict
1717from .core .configuration import Configuration
1818from .core .api_base import create_api_client
@@ -24,17 +24,19 @@ def __init__(self, api_key: Opt[str] = None, config: Opt[Configuration] = None,
2424 Initializes a new instance of the Intercom class. Requires either an API key or a Configuration object.
2525
2626 Args:
27- api_key (str): The API key to use for authentication. If not provided, will use the API key from the Configuration object.
28- config (Configuration): The configuration settings for the API. If not provided, will build one using the provided API key.
29- debug (dict): Enables debugging features.
27+ api_key (str): The API key to use for authentication.
28+ If not provided, will use the API key from the Configuration object.
29+ config (Configuration): The configuration settings for the API.
30+ If not provided, will build one using the provided API key.
31+ debug (dict): Enables debugging features.
3032 - Default HTTP proxy configuration enabled. Use custom config for more control.
3133 """
3234 if not api_key and not config :
3335 raise ValueError ("Must provide either an API key or a Configuration object." )
34-
36+
3537 if api_key and config : # type: ignore
3638 warn ("Both an API key and a Configuration object were provided. Using the Configuration object." )
37-
39+
3840 if not config :
3941 auth = BearerToken (api_key )
4042 if debug :
@@ -46,6 +48,6 @@ def __init__(self, api_key: Opt[str] = None, config: Opt[Configuration] = None,
4648 proxy = None
4749
4850 config = Configuration (auth = auth , proxy = proxy )
49-
51+
5052 for tag , api_class in tags_to_api_dict .items ():
5153 setattr (self , tag , create_api_client (api_class , config ))
0 commit comments