def call_service(api, domain, service, service_data=None):
    try:
        req = api(METHOD_POST,
                  URL_API_SERVICES_SERVICE.format(domain, service),
                  service_data)

        if req.status_code != 200:
            _LOGGER.error("Error calling service: %d - %s",
                          req.status_code, req.text)

    except HomeAssistantError:
        _LOGGER.exception("Error calling service")
Retrieve the timestamp at which the bucket was created.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/remote.py/call_service--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/storage/bucket.py/Bucket.time_created