import docs.DocRequests;
import response.DocsResponse;
import services.JsonConverter;
String apiToken = "SEU TOKEN";
try {
DocsResponse docsResponse = new DocRequests(apiToken).getDocs();
String jsonDocResponse = new JsonConverter().docsResponseToJson(docsResponse);
System.out.println(jsonDocResponse);
}
catch(Exception exceptionError) {
System.out.println(exceptionError.getMessage());
}
import docs.DocRequests;
import response.DocsResponse;
import services.JsonConverter;
public class GetDocs {
public static void main(String[] args) throws Exception {
String apiToken = "SEU TOKEN";
try {
DocsResponse docsResponse = new DocRequests(apiToken).getDocs();
String jsonDocResponse = new JsonConverter().docsResponseToJson(docsResponse);
System.out.println(jsonDocResponse);
}
catch(Exception exceptionError) {
System.out.println(exceptionError.getMessage());
}
}
}