added magic method __getattr__ to call api function directly on client
instance.