Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Statistics

Tobias Klika edited this page Oct 25, 2013 · 2 revisions

The Pocket API supports retrieval of a simple statistics object, which returns item statistics for the current authenticated user.

PocketStatistics statistics = await client.GetUserStatistics();
// PocketStatistics: [CountAll], [CountRead], [CountUnread]

There is also a method available (since 2.1.0), which supports retrieval of the API usage limits of the currently used Consumer Key:

PocketLimits limits = await client.GetUsageLimits();
// PocketStatistics: 
//  [RateLimitForConsumerKey]
//  [RemainingCallsForConsumerKey]
//  [SecondsUntilLimitResetsForConsumerKey]
//  [RateLimitForUser]
//  [RemainingCallsForUser]
//  [SecondsUntilLimitResetsForUser]
Clone this wiki locally