Skip to content
This repository was archived by the owner on May 14, 2020. It is now read-only.

Commit e1b4c44

Browse files
committed
Added delete note endpoint
1 parent e7ab34e commit e1b4c44

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.3.9 (October 21, 2013)
2+
3+
* Added endpoint to delete a note.
4+
15
## 1.3.8 (May 14, 2013)
26

37
* Added support for workflows (get workflows, run a manual workflow). See [developer docs](http://developer.helpscout.net/workflows/list/) for more information.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>net.helpscout</groupId>
55
<artifactId>helpscout-api</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.3.5</version>
7+
<version>1.3.9</version>
88
<name>helpscout-api</name>
99
<url>http://maven.apache.org</url>
1010

src/main/java/net/helpscout/api/ApiClient.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,11 +325,28 @@ public void createAttachment(Attachment attachment) throws ApiException {
325325
attachment.setHash(hash);
326326
}
327327

328+
/**
329+
* Deletes an attachment.
330+
*
331+
* @param id
332+
* @throws ApiException
333+
*/
328334
public void deleteAttachment(Long id) throws ApiException {
329335
String url = "attachments/" + id + ".json";
330336
doDelete(url, 200);
331337
}
332338

339+
/**
340+
* Deletes a note thread.
341+
*
342+
* @param threadId
343+
* @throws ApiException
344+
*/
345+
public void deleteNote(Long threadId) throws ApiException {
346+
String url = "notes/" + threadId + ".json";
347+
doDelete(url, 200);
348+
}
349+
333350
/**
334351
* Finds the workflows associated with the specified mailbox id.
335352
*

0 commit comments

Comments
 (0)