Are you sure that the URL you are passing to the API.GetLibrary method is correct? Is srinivas the hostname of the server?