Update README.md
This commit is contained in:
@@ -17,9 +17,9 @@ Sending to a Pocket client in its simplest form is as easy as doing:
|
|||||||
PocketHelper.AddItemToPocket("http://www.getpocket.com");
|
PocketHelper.AddItemToPocket("http://www.getpocket.com");
|
||||||
```
|
```
|
||||||
|
|
||||||
You can send multiple items to a Pocket client, but only a list of URLs and a comma separated list of tags.
|
You can send multiple items to a Pocket client, each with it's own tags, optional title and tweet ID.
|
||||||
|
|
||||||
The helper also allows your app to send a callback URI to the Pocket client too, so that when it's finished adding the item(s), it can relaunch your app again, keeping the user's flow in tact.
|
The helper also allows your app to send a callback URI (`callbackUri` param) to the Pocket client too, so that when it's finished adding the item(s), it can relaunch your app again, keeping the user's flow in tact.
|
||||||
|
|
||||||
## Use in Pocket Clients ##
|
## Use in Pocket Clients ##
|
||||||
This helper will allow you to easily check a url that is passed to your app and detect if it's a Pocket request, and if it is, it will give you an object that you can then use in your own app.
|
This helper will allow you to easily check a url that is passed to your app and detect if it's a Pocket request, and if it is, it will give you an object that you can then use in your own app.
|
||||||
@@ -34,19 +34,12 @@ After the <Token> tag, and if you haven't already got the Extensions tag, add th
|
|||||||
In your UriMapper, you will have code similar to this:
|
In your UriMapper, you will have code similar to this:
|
||||||
|
|
||||||
```c#
|
```c#
|
||||||
if (PocketHelper.HasPocketItem(uri))
|
if (PocketHelper.HasPocketData(uri))
|
||||||
{
|
{
|
||||||
var item = PocketHelper.RetrievePocketItem(uri);
|
var item = PocketHelper.RetrievePocketData(uri);
|
||||||
|
|
||||||
// Save the item somewhere for use within your app
|
// Save the item somewhere for use within your app
|
||||||
|
return new Uri("AddItemPage.xaml", UriKind.Relative);
|
||||||
if (item.Type == AddType.Single)
|
...
|
||||||
{
|
|
||||||
return new Uri("AddSinglePage.xaml", UriKind.Relative);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return new Uri("AddMultiplePage.xaml", UriKind.Relative);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user