Change in client service allowing callers to pass complete url instead
of path ( this was required since urls used in authentication could
differ from api urls )
Moved the local url variable inside the if block
Merge pull request #262 from ManishKataria/ClientServiceUrlFix

Change in client service allowing callers to pass complete url instead