Files
PocketSharp/README.md
T
2013-12-15 11:42:53 +01:00

3.1 KiB

PocketSharp

PocketSharp is a C#.NET portable class library that integrates the Pocket API v3.

Install PocketSharp using NuGet

Install-Package PocketSharp

for the PocketSharp.Reader

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, 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?

  • cancellationToken support 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

Forked Dependencies

used in PocketSharp.Reader

Contributors

ceee ScottIsAFool
ceee ScottIsAFool

License

MIT License