import docs.DocRequests;
import response.DocResponse;
import services.JsonConverter;
String apiToken = "YOUR TOKEN";
Set your doc token.
String docToken = "DOC TOKEN"
try {
DocResponse docResponse = new DocRequests(apiToken).detailDoc(docToken);
String jsonDocResponse = new JsonConverter().docResponseToJson(docResponse);
System.out.println(jsonDocResponse);
}
catch(Exception exceptionError) {
System.out.println(exceptionError.getMessage());
}
import docs.DocRequests;
import response.DocResponse;
import services.JsonConverter;
public class DetailDoc {
public static void main(String[] args) throws Exception {
String apiToken = "YOUR TOKEN";
String docToken = "DOC TOKEN"
try {
DocResponse docResponse = new DocRequests(apiToken).detailDoc(docToken);
String jsonDocResponse = new JsonConverter().docResponseToJson(docResponse);
System.out.println(jsonDocResponse);
}
catch(Exception exceptionError) {
System.out.println(exceptionError.getMessage());
}
}
}