From 6bd23cb4feccaf6d2717f7760726f6aa4a573c39 Mon Sep 17 00:00:00 2001 From: Tobias Klika Date: Thu, 12 Jul 2018 11:34:07 +0200 Subject: [PATCH] trending methods do not require a GUID --- PocketSharp/Components/Trending.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/PocketSharp/Components/Trending.cs b/PocketSharp/Components/Trending.cs index 0514b19..a0c9b55 100644 --- a/PocketSharp/Components/Trending.cs +++ b/PocketSharp/Components/Trending.cs @@ -12,7 +12,6 @@ namespace PocketSharp { /// /// Get trending articles on Pocket. - /// Requires an active GUID from GetGuid() and will therefore make two HTTP requests. /// /// Article count. /// Two-letter language code for language-specific results. @@ -21,11 +20,8 @@ namespace PocketSharp /// public async Task> GetTrendingArticles(int count = 20, string languageCode = "en", CancellationToken cancellationToken = default(CancellationToken)) { - string guid = await GetGuid(cancellationToken); - return (await Request("getGlobalRecs", cancellationToken, new Dictionary() { - { "guid", guid }, { "locale_lang", languageCode }, { "count", count.ToString() }, { "version", "2" } @@ -35,7 +31,6 @@ namespace PocketSharp /// /// Get trending topics on Pocket. - /// Requires an active GUID from GetGuid() and will therefore make two HTTP requests. /// /// Two-letter language code for language-specific results. /// The cancellation token. @@ -43,11 +38,8 @@ namespace PocketSharp /// public async Task> GetTrendingTopics(string languageCode = "en", CancellationToken cancellationToken = default(CancellationToken)) { - string guid = await GetGuid(cancellationToken); - return (await Request("getTrendingTopics", cancellationToken, new Dictionary() { - { "guid", guid }, { "locale_lang", languageCode }, { "version", "2" } }, false)).Items ?? new List();