Better way to call a WebService api method from client

What's the better way to call a service exposed on WebServiceAPI (with authentication) from client in the elgg site with javascript?

How to retrieve the auth_token from a logged in user?