stephenholzman / tidyusafec

An R wrapper for the OpenFEC API that features tidy cleaning.
https://stephenholzman.github.io/tidyusafec/
Other
7 stars 0 forks source link

rate limiting #2

Open stephenholzman opened 6 years ago

stephenholzman commented 6 years ago

Few things:

  1. Set a proceed y/n warning when pagination is required, indicating how many pages and results the query has. More important.
  2. Investigate automated rate limit tracking. Less important while it's only me.
stephenholzman commented 6 years ago

Have messages implemented to inform users of pagination. Set half second delays there as well to make sure that there are not more than 120 calls per minute. Space is set aside to check the actual limit indicated by API responses. Need to figure out how to throttle back requests and check back for when the limit resets.