'@param base_url: The base url to the API.
@param exc_class: An exception class to handle non-200 results.'

def __init__(self, base_url, exc_class=None, logger=None):

    self._base_url = base_url.rstrip('/')
    self._exc_class = (exc_class or RestException)
    self._logger = (logger or LOG)
    self._session = get_request_session()
    self._cookies = None
