def _handle_get_api_bootstrap(handler, path_match, data):
    hass = handler.server.hass

    handler.write_json({
        'config': hass.config.as_dict(),
        'states': hass.states.all(),
        'events': api.events_json(hass),
        'services': api.services_json(hass),
    })
Gets the authorized credentials for this flow, if they exist
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/frontend/__init__.py/_handle_get_api_bootstrap--crossover with--dataset/ETHPy150Open google/oauth2client/oauth2client/contrib/django_util/__init__.py/UserOAuth2.credentials