Added a new function dedicated to handling the calls to the API. Switched all the other functions to call that to get their data. The new function checks the rate limit response headers to decide whether it needs to wait, and waits until the reset time listed in the headers (plus a 5s buffer) - hopefully this will prevent any more of this rate limiting nonsense.
Oh, also puts the log file in the config file path now.
Added a new function dedicated to handling the calls to the API. Switched all the other functions to call that to get their data. The new function checks the rate limit response headers to decide whether it needs to wait, and waits until the reset time listed in the headers (plus a 5s buffer) - hopefully this will prevent any more of this rate limiting nonsense.
Oh, also puts the log file in the config file path now.
closes #21