Tag Info

Hot answers tagged

10

Another scenario to consider is testing. Granted tests shouldn't really be hitting the service that hard but I know for my library I have at least 50 integration test that when run all at once would it the /questions method with the same parameters many times in a minute. These requests are done anonymously (with no api key) so I am not sure if you treat ...


4

Obvious, but perhaps worth stating: An easy way for desktop apps to reduce API usage is to detect when the screensaver is active or the workstation is locked, and throttle or pause API calls. Use separate polling intervals for different types of data: you may need questions every minute, but can live with reputation updates every 5 minutes. Favor fewer API ...


4

Another good way to be conscientious to the API is think about timing. If your app has certain peaks hours, slow down on the calls after hours (If 75% of users are US, run at 1 call/min from 9-5, and 1 call/5 min the rest of the time) The same goes vice-versa. If your application isn't completely reliant on up-to-minute data during the day, slow down on the ...


4

Very cool stuff! I'm going to be using it personally. Thanks for the hack! If there will be another version, here's what I hope will be in there (minor things, not really necessary): Layout of + and - votes looks more like the layout of what's shown to 1000+ rep members (slight css change) Making this into a Firefox plugin or a Chrome extension so it does ...


1

Yes, explicitly working around the quota system would be considered abuse. Simply shipping an application that makes requests against both V1.x and V2.0 isn't, though I wouldn't encourage it (outside of the narrow case of moving an existing V1.x app onto V2.0 over multiple releases). Also, remember that V1.x's days are numbered. Once we're confident in ...


1

Notifications for new answers are quite easy. Here's what I did for StackApplet: Grab the users' recent 100 questions (the maximum) with no body or anything Combine the IDs using ';' and make the following query: http:// {site} /1.1/questions/ {combined_question_ids} / answers?fromdate= {time_of_last_poll} What this is essentially doing is grabbing ...



Only top voted, non community-wiki answers of a minimum length are eligible