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

Commit 1fe3816

Browse files
committed
Added function to get the current user associated with the API key used to make the request.
2 parents 8f220b5 + 92437cb commit 1fe3816

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-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.11 (February 4, 2014)
2+
3+
* Added method to get the current User associated with the API used to make the request.
4+
15
## 1.3.10 (October 21, 2013)
26

37
* Added endpoint to delete a note.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Help Scout Java Wrapper
22
=======================
33
Java Wrapper for the Help Scout API. More information on our developer site: [http://developer.helpscout.net](http://developer.helpscout.net).
44

5-
Version 1.3.10 Released
5+
Version 1.3.11 Released
66
---------------------
77
Please see the [Changelog](https://github.com/helpscout/helpscout-api-java/blob/master/CHANGELOG.md) for details.
88

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,10 @@ public Customer getCustomer(Long customerId, List<String> fields) throws ApiExce
204204
return (Customer)getItem(url, Customer.class, 200);
205205
}
206206

207+
public User getUserMe() throws ApiException {
208+
return (User)getItem("users/me.json", User.class, 200);
209+
}
210+
207211
public User getUser(Integer userID) throws ApiException {
208212
return (User)getItem("users/" + userID + ".json", User.class, 200);
209213
}

0 commit comments

Comments
 (0)