Skip to content
This repository has been 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):

using PocketSharp;
using PocketSharp.Models;

Initialize PocketClient with:

PocketClient _client = new PocketClient("[YOUR_CONSUMER_KEY]", "[YOUR_ACCESS_CODE]");

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

var 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!
...
Clone this wiki locally