Use "get_endpoint_url" in client instantiations

Fixes: #2