3

I'm having a problem returning a list of users questions within a given timespan. I understand that the documentation ( http://api.stackoverflow.com/0.8/help/method?method=users/{id}/questions ) that fromDate and toDate parameters are filtering on the creation_date parameter, but when I make the following call:

http://api.stackoverflow.com/0.8/users/66716/questions/?key={MyApiKey}&fromdate=1276770201&todate=1276770437&sort=activity&order=desc&type=jsontext

I'm getting items back that are before my fromdate, such as "creation_date": 1257388234

Anyone have any ideas about what am I doing wrong?

Thanks!

5
  • You're not doing anything wrong, this is a bug. Will update when fixed. Jun 17, 2010 at 14:48
  • 1
    I know I'm splitting hairs, but with sort=activity you should be looking at the last_activity_date. It's out of range too, so this is a real bug. I just wasn't sure if you were aware of this and you simply copy/pasted the wrong field from the results. Jun 17, 2010 at 22:02
  • @Bill, Thanks, I wasn't aware of this. By my read, the docs imply that the sort field is for the order of the records, not which field the method filters on. May need to update the docs too.
    – user424
    Jun 17, 2010 at 23:36
  • I think I was the one reading the doc wrong. It's min and max that take sort into account, not fromdate and todate. Please disregard my comment above. Jun 18, 2010 at 2:26
  • @Bill, no worries. Also, it looks like this bug is fixed now!
    – user424
    Jun 18, 2010 at 14:58

1 Answer 1

0

This should be fixed now.

0

You must log in to answer this question.