diff --git a/MediaBrowser.ApiInteraction/ApiClient.cs b/MediaBrowser.ApiInteraction/ApiClient.cs index 4e519ce4fb..55c30765d1 100644 --- a/MediaBrowser.ApiInteraction/ApiClient.cs +++ b/MediaBrowser.ApiInteraction/ApiClient.cs @@ -104,6 +104,20 @@ namespace MediaBrowser.ApiInteraction } } + /// + /// Gets the recently added items + /// + /// The user id. + /// + public async Task GetRecentlyAddedItemsAsync(Guid userId) + { + string url = ApiUrl + "/itemlist?listtype=recentlyaddeditems&userId=" + userId.ToString(); + using (Stream stream = await GetSerializedStreamAsync(url).ConfigureAwait(true)) + { + return DeserializeFromStream(stream); + } + } + /// /// Gets all Years ///