def __init__(self, api_url, username=None, password=None):
        self.api_url = api_url
        self.status = None
        self.headers = {'content-type': 'application/json'}
        if username is not None and password is not None:
            self.auth = (username, password)
        else:
            self.auth = None
        # set the intial state
        self.update()
DEPRECATED: Returns a URL pointing to a backend or backend instance.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/sensor/nzbget.py/NZBGetAPI.__init__--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/api/backends/backends.py/get_url