Timeline for Py-StackExchange: An API wrapper for Python
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 10, 2011 at 0:46 | comment | added | Lucas Jones |
Ahem. Revisited this, doing browser testing. The reason from_date and to_date work is that they are ignored. Compare the total field on api.stackoverflow.com/1.1/… to api.stackoverflow.com/1.1/…. Either way, you can pass in a float if you want now; in the latest revision it'll be appropriately converted behind-the-scenes.
|
|
May 18, 2011 at 15:21 | comment | added | Lucas Jones |
Doing some testing... strange: with from_date=aWhileAgo and to_date=currentDate it works, as it does with fromdate=int(aWhileAgo) and todate . But using a float as fromdate (as aWhileAgo was), which is formatted with a trailing .0 fails with error 500. So both work with integers; this might be an API inconsistency.
|
|
May 18, 2011 at 15:13 | comment | added | Lucas Jones | While I'm here, I'll try putting in some more descriptive exceptions, too. | |
May 18, 2011 at 15:05 | comment | added | Lucas Jones |
Hello; sorry for the delay, glad you solved your problem. To answer your first question, you can turn on debug printing of URLs by setting stackexchange.web.WebRequestManager.debug = True . I agree that the documentation in that area is lacking; a wiki page is coming up. I'll look into that inconsistency; it seems quite pointless... I apologise on behalf of my younger self.
|
|
May 16, 2011 at 22:26 | history | edited | LarsH | CC BY-SA 3.0 |
question solved
|
May 16, 2011 at 22:03 | history | edited | LarsH | CC BY-SA 3.0 |
noted that error only occurs with the *date keywords
|
May 16, 2011 at 21:40 | history | edited | LarsH | CC BY-SA 3.0 |
added my code
|
May 16, 2011 at 21:30 | history | answered | LarsH | CC BY-SA 3.0 |