TestIoClientFactory factory = new TestIoClientFactory.Builder()
.baseUrl("https://api.test.io/customer/v2/")
.token("abcdefg")
.build();
BugsClient bugsClient = factory.bugsClient();
Response<BugsResponse> resp = bugsClient.fetchBugs().execute();
List<Bug> bugs = resp.body().getBugs();
TestIoClientFactory factory = new TestIoClientFactory.Builder()
.baseUrl("https://api.test.io/customer/v2/")
.token("abcdefg")
.loggingLevel(Level.BODY)
.build();
...
OkHttpClient client = new OkHttpClient.Builder()
.connectTimeout(Duration.ofSeconds(10))
.readTimeout(Duration.ofSeconds(10))
.retryOnConnectionFailure(true)
.build();
TestIoClientFactory factory = new TestIoClientFactory.Builder()
.baseUrl("https://api.test.io/customer/v2/")
.token("abcdefg")
.client(client)
.build();
...