diff --git a/PocketSharp.Website/index.html b/PocketSharp.Website/index.html
index 4518de8..c041e4e 100644
--- a/PocketSharp.Website/index.html
+++ b/PocketSharp.Website/index.html
@@ -33,7 +33,7 @@
PocketSharp is a C#.NET class library, that integrates the Pocket API v3
- Current version: 1.2.0
+ Current version: 1.3.0
Install-Package PocketSharp
@@ -124,6 +124,8 @@ using PocketSharp.Models;
Release History
+ - 2013-09-19 v1.3.0 get Item by ID + tag modification bugfixes
+ - 2013-09-18 v1.2.1 correct parameter conversion for DateTime and Boolean
- 2013-09-17 v1.2.0 simplified retrieve methods
- 2013-09-17 v1.1.0 fix modification requests
- 2013-09-15 v1.0.0 convert to PCL & implement async
@@ -209,6 +211,8 @@ Note that GetAccessCode can only be called with an existing req
);
It's best to use parameters as named parameters, to avoid typing null values:
List<PocketItem> items = await _client.Retrieve(count: 10, offset: 20, sort: Sort.oldest);
+Get item by ID:
+PocketItem item = await _client.Retrieve(1298198);
Find items by a tag:
List<PocketItem> items = await _client.SearchByTag("tutorial");
Find items by a search string:
diff --git a/PocketSharp/Components/ModifyTags.cs b/PocketSharp/Components/ModifyTags.cs
index 5eff5f4..386aa74 100644
--- a/PocketSharp/Components/ModifyTags.cs
+++ b/PocketSharp/Components/ModifyTags.cs
@@ -48,7 +48,7 @@ namespace PocketSharp
/// Removes the specified tags.
///
/// The item.
- /// The tags.
+ /// The tag.
///
public async Task RemoveTags(PocketItem item, string[] tags)
{
@@ -60,7 +60,7 @@ namespace PocketSharp
/// Removes a tag.
///
/// The item ID.
- /// The tags.
+ /// The tag.
///
public async Task RemoveTag(int itemID, string tag)
{
diff --git a/PocketSharp/Components/Retrieve.cs b/PocketSharp/Components/Retrieve.cs
index c2118f9..041667f 100644
--- a/PocketSharp/Components/Retrieve.cs
+++ b/PocketSharp/Components/Retrieve.cs
@@ -61,7 +61,7 @@ namespace PocketSharp
state: State.all
);
- return items.Single(item => item.ID == itemID);
+ return items.SingleOrDefault(item => item.ID == itemID);
}
diff --git a/PocketSharp/Properties/AssemblyInfo.cs b/PocketSharp/Properties/AssemblyInfo.cs
index e7b412b..4129062 100644
--- a/PocketSharp/Properties/AssemblyInfo.cs
+++ b/PocketSharp/Properties/AssemblyInfo.cs
@@ -25,5 +25,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.2.1")]
-[assembly: AssemblyFileVersion("1.2.1")]
\ No newline at end of file
+[assembly: AssemblyVersion("1.3.0")]
+[assembly: AssemblyFileVersion("1.3.0")]
\ No newline at end of file
diff --git a/README.md b/README.md
index 4798483..05aaec5 100644
--- a/README.md
+++ b/README.md
@@ -168,6 +168,12 @@ It's best to use parameters as _named parameters_, to avoid typing `null` values
List items = await _client.Retrieve(count: 10, offset: 20, sort: Sort.oldest);
```
+Get item by ID:
+
+```csharp
+PocketItem item = await _client.Retrieve(1298198);
+```
+
Find items by a tag:
```csharp
@@ -265,6 +271,7 @@ Renames a tag for the specified item:
## Release History
+- 2013-09-19 v1.3.0 get Item by ID + tag modification bugfixes
- 2013-09-18 v1.2.1 correct parameter conversion for DateTime and Boolean
- 2013-09-17 v1.2.0 simplified retrieve methods
- 2013-09-17 v1.1.0 fix modification requests