summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FAQ.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/FAQ.md b/FAQ.md
index 6c6e7f3..b05c52f 100644
--- a/FAQ.md
+++ b/FAQ.md
@@ -134,7 +134,9 @@ You can run any RSS/Atom feed through tt-rss parser [here](https://tt-rss.org/my
See this thread for more information / feedback: <https://community.tt-rss.org/t/my-feed-doesnt-parse-properly-or-does-it-myfeedsucks/30>
-### I need to get the number of unread articles in the simplest way.
+### I need to get the number of unread articles for specific user
+
+There's a simple unauthenticated endpoint to do just that:
```
$ curl -s "https://example.com/tt-rss/public.php?op=getUnread&login=you&fresh=1" ; echo
@@ -143,7 +145,7 @@ $ curl -s "https://example.com/tt-rss/public.php?op=getUnread&login=you" ; echo
8
```
-In single user mode, use “admin” for login. No password is required.
+In single user mode, use “admin” for login.
If optional parameter `&fresh=1` is passed via query string, return value includes fresh article count as a `;`-separated string.