Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Usage Example

Tobias Klika edited this page Oct 17, 2013 · 1 revision

Request a Consumer Key on Pocket.

Include the PocketSharp namespace and it's associated models (you will need them later):

usingPocketSharp;usingPocketSharp.Models;

Initialize PocketClient with:

PocketClient_client=newPocketClient("[YOUR_CONSUMER_KEY]","[YOUR_ACCESS_CODE]");

Do a simple request - e.g. a search for CSS:

varitems=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!
...

Clone this wiki locally