deleteDoc
Excluir documento
Visão geral
Uso:
import docs.DocRequests;
import response.DocsResponse;
import services.JsonConverter;Exemplo completo:
Last updated
String apiToken = "SEU TOKEN";String docToken = "TOKEN DOCUMENTO";try {
DocResponse docResponse = new DocRequests(apiToken).deleteDoc(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 DeleteDoc {
public static void main(String[] args) throws Exception {
String apiToken = "SEU TOKEN";
String docToken = "TOKEN DOCUMENTO";
try {
DocResponse docResponse = new DocRequests(apiToken).deleteDoc(docToken);
String jsonDocResponse = new JsonConverter().docResponseToJson(docResponse);
System.out.println(jsonDocResponse);
}
catch(Exception exceptionError) {
System.out.println(exceptionError.getMessage());
}
}
}