Take the 2-minute tour ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

I was contemplating adding notifications to my app, Droidstack. I would've liked to be able to add notifications for when new answers are posted to a user's (favorite) questions, when new comments are posted in reply to them or when they're questions / answers are edited by someone else.

Unfortunately, the only ways I could do that are:

  • Download all the questions and answers of a user every 15 minutes. These might be in the hundreds, so not a good idea.
  • Download only the last 10 items, sorted by activity, and see if they change. If any changes appear, use /questions/{id}/timeline to figure out what changed. Not a good idea because that means a separate request for every changed item, plus there's no /answers/{id}/timeline (so if an answer changes I can't know what changed -- upvote/downvote, comment, ...).

That's why I propose /users/{id}/notifications (or name it any way you want, like updates), that would gather all this info under a single API call. This would be very similar to the /timeline calls.

Also, none of the data that would be provided by such a call is private. This means that this doesn't have to wait for 2.0. Maybe 1.1? :)

share|improve this question
add comment

2 Answers 2

up vote 1 down vote accepted

You can synthesize most/all of this call currently (new answers, changes in user rep, and comments directed at user are all accessible in v1.0) however it does take multiple calls.

We'll revisit this for subsequent API versions.

As TheLQ pointed out, this was added in v2.1.

share|improve this answer
    
Shouldn't this be marked [status-completed] since 2.1 supports this? –  TheLQ Jul 15 '13 at 12:16
add comment

I think this was already answered here: http://stackapps.com/questions/635/can-we-have-some-sort-of-notification-system

I would like to see this as well but it seems that it isn't going to happen.

share|improve this answer
2  
I read that question and it's completely different than mine. I'm not asking for a service that would poll my app whenever something happens. Rather, I'm asking for an API call that I could poll every now and then. –  Felix Jul 15 '10 at 0:58
add comment

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .