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

Commit cf6903b

Browse files
committed
Added endpoint to delete a note
2 parents c42a776 + e1b4c44 commit cf6903b

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

CHANGELOG.md

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

37
* Added support for the thread-source endpoint (to retrieve original email source). See [developer docs](http://developer.helpscout.net/conversations/thread/source/) for more information.
@@ -44,4 +48,4 @@
4448

4549
* Conversation now has a [ConversationType](https://github.com/helpscout/helpscout-api-java/blob/master/src/main/java/net/helpscout/api/cbo/ConversationType.java) property that specifies if the type of conversation is an 'email' or 'chat'.
4650
* PersonRef now has a [PersonType](https://github.com/helpscout/helpscout-api-java/blob/master/src/main/java/net/helpscout/api/cbo/PersonType.java) property that specifies if a 'user' or 'customer' is represented.
47-
* ThreadType has been updated to include a Chat conversation.
51+
* ThreadType has been updated to include a Chat conversation.

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)