REST Client with callback