v2.2.2
_do_call () of the connection does not handle background tasks and ACCEPTED http response codes
New parameter added to RestAPIClient constructor: use_token: bool = False
RestApiClient(bu: str, pr: str = None, use_token: bool = False, use_http: bool =False, host: str = "api.ultradns.com")
Initialize a Rest API Client.
Arguments:
bu (str) -- Either username or bearer token based onuse_tokenflag.
pr (str, optional) -- Either password or refresh token based onuse_tokenflag. Defaults to None.
use_token (bool, optional) -- If True, treatsbuas bearer token andpras refresh token. Defaults to False.Keyword Arguments:
use_http (bool, optional) -- For internal testing purposes only, lets developers use http instead of https.
host (str) -- Allows you to point to a server other than the production server.Raises:
ValueError -- Ifpris not provided whenuse_tokenis True.