Files
PocketSharp/README.md
T

77 lines
2.3 KiB
Markdown
Raw Normal View History

2013-11-01 16:38:24 +01:00
![PocketSharp](https://raw.github.com/ceee/PocketSharp/master/Assets/github-header.png)
2013-09-05 21:58:13 +02:00
2013-10-21 22:12:53 +02:00
**PocketSharp** is a C#.NET portable class library that integrates the [Pocket API v3](http://getpocket.com/developer).
2013-10-25 15:19:42 +02:00
## Install using [NuGet](https://www.nuget.org/packages/PocketSharp/)
2013-07-02 20:58:13 +02:00
2013-07-29 22:22:05 +02:00
```
Install-Package PocketSharp
```
2013-07-02 20:58:13 +02:00
2013-10-17 15:34:05 +02:00
## Documentation
2013-09-29 23:22:03 +02:00
2013-10-25 15:19:42 +02:00
See [wiki](https://github.com/ceee/PocketSharp/wiki)
2013-09-29 23:22:03 +02:00
2013-10-23 20:26:40 +02:00
---
## Usage Example:
A search for items containing `CSS`:
```csharp
2013-10-23 20:27:19 +02:00
PocketClient client = new PocketClient("[YOUR_CONSUMER_KEY]", "[YOUR_ACCESS_CODE]");
2013-10-23 20:26:40 +02:00
2013-10-23 20:27:19 +02:00
List<PocketItem> items = await client.Search("css");
2013-10-23 20:26:40 +02:00
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!
...
---
2013-09-15 15:46:13 +02:00
## Supported platforms
PocketSharp is a **Portable Class Library** (since 1.0.0), therefore it's compatible with multiple platforms:
2013-10-25 15:19:42 +02:00
- **.NET** >= 4.5 (including WPF)
2013-09-15 15:46:13 +02:00
- **Silverlight** >= 4
- **Windows Phone** >= 7.5
- **Windows Store**
2013-09-17 23:28:28 +02:00
You can find examples for Silverlight 5, WP8 and WPF in the `PocketSharp.Examples` ([@github](https://github.com/ceee/PocketSharp/tree/master/PocketSharp.Examples)) folder.
2013-09-15 15:46:13 +02:00
2013-10-23 20:26:40 +02:00
## What's next?
- `cancellationToken` support for all methods
2013-06-26 14:16:07 +02:00
2013-07-09 23:13:06 +02:00
## Dependencies
2013-07-02 21:15:57 +02:00
2013-09-15 15:46:13 +02:00
- [Microsoft.Bcl.Async](https://www.nuget.org/packages/Microsoft.Bcl.Async/)
- [Microsoft.Net.Http](https://www.nuget.org/packages/Microsoft.Net.Http/)
- [Newtonsoft.Json](https://www.nuget.org/packages/Newtonsoft.Json/)
2013-10-25 15:19:42 +02:00
- [PropertyChanged.Fody](https://github.com/Fody/PropertyChanged)
2013-07-02 21:15:57 +02:00
2013-10-21 22:12:53 +02:00
## Forked Dependencies
- [NReadability](https://github.com/marek-stoj/NReadability) - converted to a PCL with minor adaptations
- [SgmlReader](https://github.com/MindTouch/SGMLReader) - converted to a PCL
2013-06-13 11:07:27 +02:00
## Contributors
2013-10-25 15:22:13 +02:00
| [![ceee](http://gravatar.com/avatar/9c61b1f4307425f12f05d3adb930ba66?s=70)](https://github.com/ceee "Tobias Klika") | [![ScottIsAFool](http://gravatar.com/avatar/6df656872a87b09a7470feb4867ed927?s=70)](https://github.com/ScottIsAFool "Scott Lovegrove") |
|---|---|
| [ceee](https://github.com/ceee) | [ScottIsAFool](https://github.com/ScottIsAFool) |
2013-10-25 15:19:42 +02:00
2013-07-09 23:13:06 +02:00
## License
2013-07-29 22:22:05 +02:00
[MIT License](https://github.com/ceee/PocketSharp/blob/master/LICENSE-MIT)