Use "get_endpoint_url" in client instantiations

Closes #2