def get_client_id_from_mediator(provider):
    try:
        r = invoke_mediator('/api/method/renovation_mediator.api.get_service_provider_client_id', {'provider': provider})
        r.raise_for_status()
        r = r.json()
        return r['message']
    except:
        frappe.throw(r.text)
def get_client_id_from_mediator(provider):
    try:
        r = invoke_mediator('/api/method/renovation_mediator.api.get_service_provider_client_id', {'provider': provider})
        r.raise_for_status()
        r = r.json()
        return r['message']
    except:
        frappe.throw(r.text)