Provide the api version in the client base url
Throw exception when authentication fails
Updated the lib usage example