That would require knowing even a little bit about your requirements and what you are using these libraries for. I suspect that you will have to use the Repository REST API instead since that's the only supported API.
But that isn't going to be a simple swap of a library since this interface is called via HTTP. Really you need to look at the requirements and design a solution that uses approved APIs.