How to combine WebResource requests in java

72 Views Asked by At

I am writing a script using java that send requests to two API's and in my code I am using many WebResource requests because I have to go back and forth between them fetching information.

WebResource sample = client.resource("http://" + keyName);

WebResource sample1 = client.resource("http://" + keyName);

WebResource sample3 = client.resource("http://" + keyName);

WebResource sample4 = client.resource("http://" + keyName);

How can I combine them?

0

There are 0 best solutions below