2013-06-13 13:34:41 +02:00
|
|
|
using System;
|
2013-06-13 16:06:28 +02:00
|
|
|
using PocketSharp;
|
2013-06-13 16:22:38 +02:00
|
|
|
using PocketSharp.Models.Authentification;
|
2013-06-15 14:36:06 +02:00
|
|
|
using PocketSharp.Models.Parameters;
|
2013-06-20 00:24:43 +02:00
|
|
|
using PocketSharp.Models;
|
|
|
|
|
using System.Collections.Generic;
|
2013-06-13 13:34:41 +02:00
|
|
|
|
|
|
|
|
namespace PocketSharp.Console
|
|
|
|
|
{
|
|
|
|
|
class Program
|
|
|
|
|
{
|
|
|
|
|
static void Main(string[] args)
|
|
|
|
|
{
|
|
|
|
|
System.Console.WriteLine("PocketClient internal usage tests");
|
|
|
|
|
System.Console.WriteLine("---------------------------------");
|
|
|
|
|
|
|
|
|
|
// this apiKey is just for demonstration purposes
|
|
|
|
|
// please create your own application and retrieve it's key. It's a 1-step process ;-)
|
2013-06-19 23:05:12 +02:00
|
|
|
PocketClient client = new PocketClient(
|
2013-06-20 00:24:43 +02:00
|
|
|
consumerKey: "15396-f6f92101d72c8e270a6c9bb3",
|
|
|
|
|
accessCode: "a85134a7-243c-6656-ab82-97c901"
|
2013-06-19 23:05:12 +02:00
|
|
|
);
|
2013-06-14 02:44:40 +02:00
|
|
|
|
2013-06-20 00:24:43 +02:00
|
|
|
List<PocketItem> x = client.Retrieve(RetrieveFilter.Archive);
|
|
|
|
|
|
|
|
|
|
foreach(PocketItem item in x)
|
2013-06-15 14:36:06 +02:00
|
|
|
{
|
2013-06-20 00:24:43 +02:00
|
|
|
System.Console.WriteLine(">>> " + item.Title);
|
|
|
|
|
}
|
2013-06-13 16:06:28 +02:00
|
|
|
|
2013-06-13 13:34:41 +02:00
|
|
|
System.Console.ReadKey();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|