Example #1
0
        static async Task PocketAdd(string url)
        {
            const string consumerKey = "[YOUR_CONSUMER_KEY]";
            const string accessCode  = "[YOUR_ACCESS_CODE]";

            PocketClient client = new PocketClient(consumerKey, accessCode);

            PocketItem newItem = await client.Add(
                new Uri(url),
                new string[] { "boxscore" }
                );
        }
Example #2
0
        static void Main(string[] args)
        {
            PocketClient pocket  = new PocketClient(CONSUMER_KEY);
            string       authUrl = pocket.GetAuthUrlAsync().Result;

            Console.WriteLine("AuthUrl: " + authUrl);
            Console.WriteLine("Please auth action.");
            Console.ReadLine();

            if (pocket.SendAuthCompleteAsync().Result)
            {
                Console.WriteLine("Complete.");

                pocket.Add("https://getpocket.com/developer/docs/v3/add", tags: new[] { "test" }).Wait();
            }
        }
Example #3
0
 public async Task <PocketItem> Post(string url, string[] tags) => await client.Add(new Uri(url), tags);