Is it possible to subscribe other users' favorites feeds?

有帮助吗?

解决方案

Yes, you can.

The users/{id}/favorites API call returns a JSON response with a user's favorites.

You can use this JSON response to be notified (you might have to transform it in some way, but it is a feed like RSS, ATOM, it's just a different format) when a new favorite is added (you'd have to use polling just like an RSS/ATOM feed reader does).

That said, you can see the response for my current favorites on Stack Overflow through this link:

http://api.stackoverflow.com/1.1/users/50776/favorites

Which returns the following response (I've truncated it a bit to make the format of the response clear):

{
 "total": 49,
 "page": 1,
 "pagesize": 30,
 "questions": [
  {
   "tags": [
    "mathematica"
   ],
   "answer_count": 3,
   "favorite_count": 4,
   "closed_date": 1325272367,
   "closed_reason": "not constructive",
   "question_timeline_url": "/questions/8672115/timeline",
   "question_comments_url": "/questions/8672115/comments",
   "question_answers_url": "/questions/8672115/answers",
   "question_id": 8672115,
   "owner": {
    "user_id": 1121705,
    "user_type": "registered",
    "display_name": "Brandon Ogle",
    "reputation": 24,
    "email_hash": "7d4eecba99c6f1c762d5380088a5e412"
   },
   "creation_date": 1325184874,
   "last_edit_date": 1325187462,
   "last_activity_date": 1326811827,
   "up_vote_count": 5,
   "down_vote_count": 1,
   "view_count": 307,
   "score": 4,
   "community_owned": false,
   "title": "Are there good online video tutorials for learning Mathematica?"
  },
  ...
 ]
}

If JSON is good enough for you, then you can stop there.

If you want an RSS feed, then you can use the Stack2RSS app with the same API route/parameters to get an RSS feed. So to get the RSS for the API call above, you would use:

http://stack2rss.stackexchange.com/stackoverflow.com/users/50776/favorites

Which is directly pluggable into any application that can consume RSS.

其他提示

No. Stack Overflow is a Q&A site, not a social networking site, so there is no functionality for "subscribing" to a particular user in any way. There have been requests for similar things in the past, and they have all been shot down.

Marking a question as a favorite doesn't mean that it's any good. In fact, I often use favorites to mark questions that need editing or which are otherwise problematic. Favorites don't necessarily make sense for anyone but the user they belong to.

In the end, it's the content itself that matters. Not who wrote it, who voted for it or who marked it as a favorite.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top