Show unread posts

Support, bug reports, etc. go here.

Show unread posts

Postby Rick on Sat Aug 19, 2006 16:58

I'm studing the posibility of make a firefox extension to show if there is any unread item, just like 'Bloglines Toolkit'.

Since it's my 'first time' I wanted to know if there is a way to know the number of unread items using a URL...

Also, if you know a similar project, tell me please...
User avatar
Rick
 
Posts: 14
Joined: Sat Aug 19, 2006 16:45
Location: Sanxenxo

Postby fox on Sat Aug 19, 2006 17:23

First of all, great idea. I would install something like that in a minute.

The best way to contact with tt-rss would be XML-RPC API. Although I don't have the slightest idea if it is possible to write XML-RPC clients for Firefox.

Another way, via URL:

Code: Select all
http://(your ttrss url)/backend.php?op=rpc&subop=getAllCounters


This will return XML file with all counters, including global unread. You obviously need to be logged in for this to work.

By the way, if you need anything special from tt-rss to ease writing Firefox extension, don't hesitate to ask.
User avatar
fox
Site Admin
 
Posts: 1204
Joined: Sat Aug 27, 2005 21:53
Location: Saint-Petersburg, Russia

API

Postby Rick on Sat Aug 19, 2006 21:19

Something like this would be great :-)

http://bloglines.com/services/api/notifier
User avatar
Rick
 
Posts: 14
Joined: Sat Aug 19, 2006 16:45
Location: Sanxenxo

Postby fox on Sun Aug 20, 2006 10:32

Code: Select all
backend.php?op=getUnread&login=LOGIN


Returns number of unread articles in plain text. Will be in the next release.
User avatar
fox
Site Admin
 
Posts: 1204
Joined: Sat Aug 27, 2005 21:53
Location: Saint-Petersburg, Russia

Perfect

Postby Rick on Sun Aug 20, 2006 14:37

Perfect! So I will have time to know how to do the rest of the things :-)

Thanks!
User avatar
Rick
 
Posts: 14
Joined: Sat Aug 19, 2006 16:45
Location: Sanxenxo

Ready

Postby Rick on Mon Aug 21, 2006 0:56

The skeleton is almost done, now just needs funcionality. When you release the next version I can begin to play, test, swear, etc ;-)
User avatar
Rick
 
Posts: 14
Joined: Sat Aug 19, 2006 16:45
Location: Sanxenxo

Question

Postby Rick on Wed Aug 23, 2006 4:27

What is the best way to update the feeds in order to ask for the unread ones just after? running update_feeds.php. maybe?

PS: The extension is almost done ;-)
User avatar
Rick
 
Posts: 14
Joined: Sat Aug 19, 2006 16:45
Location: Sanxenxo

Postby fox on Wed Aug 23, 2006 12:20

Yep. Or requesting the specific URL (see the FAQ).

I'm waiting for the extension :)
User avatar
fox
Site Admin
 
Posts: 1204
Joined: Sat Aug 27, 2005 21:53
Location: Saint-Petersburg, Russia


Return to Support

Who is online

Users browsing this forum: No registered users and 0 guests

cron