a643e5c556b9c41615c53a4dc2845d1d59b69941
PocketSharp is a C#.NET portable class library that integrates the Pocket API v3.
Install using NuGet
Install-Package PocketSharp
for the Reader (coming in v3.0):
Install-Package PocketSharp.Reader
Documentation
See wiki
Usage Example:
A search for items containing CSS:
PocketClient client = new PocketClient("[YOUR_CONSUMER_KEY]", "[YOUR_ACCESS_CODE]");
List<PocketItem> items = await client.Search("css");
items.ForEach(
item => Debug.WriteLine(item.ID + " | " + item.Title)
);
Which will output:
330361896 | CSS Front-end Frameworks with comparison : By usabli.ca
345541438 | Editr - HTML, CSS, JavaScript playground
251743431 | CSS Architecture
343693149 | CSS3 Transitions - Thank God We Have A Specification!
...
Supported platforms
PocketSharp is a Portable Class Library (since 1.0.0), therefore it's compatible with multiple platforms:
- .NET >= 4.5 (including WPF)
- Silverlight >= 4
- Windows Phone >= 7.5
- Windows Store
You can find examples for Silverlight 5, WP8 and WPF in the PocketSharp.Examples (@github) folder.
What's new in the upcoming PocketSharp v3.0?
- support for new Preferences API
cancellationTokensupport for all methods- support HTML injection into content from PocketArticle (maybe remove title from Article)
- make setters for inline objects in PocketItem (images, videos, ...)
- IPocketClient interface
- PreRequest callback allows injection of
Action<string>before every request - Submit multiple actions in one request
- Split PocketReader into own NuGet package
- bugfixes, for sure!
Dependencies
- Microsoft.Bcl.Async (used in PocketSharp & PocketSharp.Reader)
- Microsoft.Net.Http (used in PocketSharp & PocketSharp.Reader)
- Newtonsoft.Json (only for PocketSharp project)
- PropertyChanged.Fody (only for PocketSharp project)
Forked Dependencies
used in PocketSharp.Reader
- NReadability - converted to a PCL with minor adaptations
- SgmlReader - converted to a PCL
Contributors
| ceee | ScottIsAFool |
License
Description
Languages
C#
100%
