This commit is contained in:
parent
7907aaa1e0
commit
b975d98889
17 changed files with 795 additions and 367 deletions
|
@ -12,18 +12,16 @@ class ZiplineApi:
|
|||
enforced_signing: bool = True,
|
||||
logger: logging.Logger = None
|
||||
):
|
||||
"""Constructor for ZiplineApi
|
||||
"""Constructor for ZiplineApi.
|
||||
|
||||
:param hostname: The hostname of your Zipline instance, WITHOUT https or http.
|
||||
:type hostname: str
|
||||
:param token: String used for authentication when making requests.
|
||||
:type token: str, optional
|
||||
:param ssl: Normally set to True, but if your Zipline instance doesn't use SSL/TLS, set this to False.
|
||||
:type ssl: bool, optional
|
||||
:param enforced_signing: Normally set to True, but if having SSL/TLS cert validation issues, can turn off with False.
|
||||
:type enforced_signing: bool, optional
|
||||
:param logger: If your app has a logger, pass it in here.
|
||||
:type logger: logging.Logger, optional
|
||||
All API requests should be made through this class.
|
||||
|
||||
Args:
|
||||
hostname (str): The hostname of your Zipline instance, WITHOUT https or http.
|
||||
token (str = None): String used for authentication when making requests.
|
||||
ssl (bool = True): Normally set to True, but if your Zipline instance doesn't use SSL/TLS, set this to False.
|
||||
enforced_signing (bool = True): Normally set to True, but if having SSL/TLS cert validation issues, can turn off with False.
|
||||
logger (logging.Logger = None): If your app has a logger, pass it in here.
|
||||
"""
|
||||
self._rest_adapter = RestAdapter(hostname=hostname, token=token, ssl=ssl, enforced_signing=enforced_signing, logger=logger)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue