We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4259fe commit d5eadc9Copy full SHA for d5eadc9
src/main/java/com/aaroncoplan/todoist/Todoist.java
@@ -368,4 +368,16 @@ public void updateComment(long id, String content) {
368
e.printStackTrace();
369
}
370
371
+
372
+ public void deleteComment(long id) {
373
+ try {
374
+ HttpResponse<String> response = Unirest.delete(URL_BASE + "/comments/" + id)
375
+ .asString();
376
+ if(response.getStatus() != HTTP_OK_NO_CONTENT) {
377
+ throw new Exception("HTTP STATUS " + response.getStatus());
378
+ }
379
+ } catch (Exception e) {
380
+ e.printStackTrace();
381
382
383
0 commit comments